diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/hideAttachments.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/hideAttachments.tsx b/src/plugins/hideAttachments.tsx index f608e05..36c34e4 100644 --- a/src/plugins/hideAttachments.tsx +++ b/src/plugins/hideAttachments.tsx @@ -49,7 +49,7 @@ export default definePlugin({ await this.buildCss(); addButton("HideAttachments", msg => { - if (!msg.attachments.length && !msg.embeds.length) return null; + if (!msg.attachments.length && !msg.embeds.length && !msg.stickerItems.length) return null; const isHidden = hiddenMessages.has(msg.id); @@ -72,7 +72,7 @@ export default definePlugin({ async buildCss() { const elements = [...hiddenMessages].map(id => `#message-accessories-${id}`).join(","); style.textContent = ` - :is(${elements}) [class*="embedWrapper"] { + :is(${elements}) :is([class*="embedWrapper", [class*"clickableSticker"]) { /* important is not necessary, but add it to make sure bad themes won't break it */ display: none !important; } |