mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-28 02:06:23 +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() {
|
async buildCss() {
|
||||||
let chatMessages = ""
|
const chatMessages = [...hiddenMessages].map(ids => `#chat-messages-${JSON.parse(ids).channelId}-${JSON.parse(ids).messageId}`).join(",");
|
||||||
let messagesContent = ""
|
const messagesContent = [...hiddenMessages].map(ids => `#message-content-${JSON.parse(ids).messageId}`).join(",");
|
||||||
hiddenMessages.forEach((ids) => {
|
const messagesAccessories = [...hiddenMessages].map(ids => `#message-accessories-${JSON.parse(ids).messageId}`).join(",");
|
||||||
chatMessages += `#chat-messages-${JSON.parse(ids).channelId}-${JSON.parse(ids).messageId},`
|
|
||||||
messagesContent += `#message-content-${JSON.parse(ids).messageId},`
|
|
||||||
})
|
|
||||||
style.textContent = `
|
style.textContent = `
|
||||||
:is(${chatMessages}) :is([class*="message_d5deea"]) :is([class*="embedWrapper"], [class*="clickableSticker"]) {
|
:is(${chatMessages}) :is([class*="message_d5deea"]) :is([class*="embedWrapper"], [class*="clickableSticker"]) {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
@ -73,6 +70,9 @@ export default definePlugin({
|
||||||
:is(${messagesContent}) {
|
:is(${messagesContent}) {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
:is(${messagesAccessories}) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue