Bigger, faster, stronger

This commit is contained in:
worm 2023-11-20 10:11:50 -08:00
parent d9cf1a7738
commit ceb5da36b7

View file

@ -13,10 +13,14 @@
// Icon from flaticons.com // Icon from flaticons.com
// At present, this filtration is specific to app generated messages. // At present, this filtration is specific to app generated messages.
// EDIT the const SPAM to select application notifs to remove
const SPAM = "KANBAN UPDATE NOTIFICATION";
const removeMessages = () => { const removeMessages = () => {
const messages = Array.from(document.querySelectorAll('[data-qa="virtual-list-item"]')); const messages = Array.from(document.querySelectorAll('[data-qa="virtual-list-item"]'));
const haveButtons = messages.filter(message => message.querySelector('button')); const haveButtons = messages.filter(message => message.querySelector('button'));
haveButtons.forEach( (node) => removeIfSpam(node, "SEV2 Handoff Candidate")); haveButtons.forEach( (node) => removeIfSpam(node, SPAM));
} }
const removeIfSpam = (node, spamMessage) => { const removeIfSpam = (node, spamMessage) => {