Bigger, faster, stronger
This commit is contained in:
parent
d9cf1a7738
commit
ceb5da36b7
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue