diff --git a/foz.user.js b/foz.user.js index a1266f3..2723d01 100644 --- a/foz.user.js +++ b/foz.user.js @@ -13,10 +13,14 @@ // Icon from flaticons.com // 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 messages = Array.from(document.querySelectorAll('[data-qa="virtual-list-item"]')); 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) => {