mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-27 01:36:24 +00:00
ugh 2
This commit is contained in:
parent
5b81994317
commit
39d55f64aa
1 changed files with 6 additions and 6 deletions
|
@ -60,12 +60,9 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
async buildCss() {
|
||||
let chatMessages = ""
|
||||
let messagesContent = ""
|
||||
hiddenMessages.forEach((ids) => {
|
||||
chatMessages += `#chat-messages-${JSON.parse(ids).channelId}-${JSON.parse(ids).messageId},`
|
||||
messagesContent += `#message-content-${JSON.parse(ids).messageId},`
|
||||
})
|
||||
const chatMessages = [...hiddenMessages].map(ids => `#chat-messages-${JSON.parse(ids).channelId}-${JSON.parse(ids).messageId}`).join(",");
|
||||
const messagesContent = [...hiddenMessages].map(ids => `#message-content-${JSON.parse(ids).messageId}`).join(",");
|
||||
const messagesAccessories = [...hiddenMessages].map(ids => `#message-accessories-${JSON.parse(ids).messageId}`).join(",");
|
||||
style.textContent = `
|
||||
:is(${chatMessages}) :is([class*="message_d5deea"]) :is([class*="embedWrapper"], [class*="clickableSticker"]) {
|
||||
display: none !important;
|
||||
|
@ -73,6 +70,9 @@ export default definePlugin({
|
|||
:is(${messagesContent}) {
|
||||
display: none !important;
|
||||
}
|
||||
:is(${messagesAccessories}) {
|
||||
display: none !important;
|
||||
}
|
||||
`;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue