reduce setTimeout.

This commit is contained in:
Jason Schwarzenberger 2020-11-17 16:07:33 +13:00
parent 3b885e4327
commit 78654e0c63

View File

@ -45,7 +45,11 @@
removeSelectors([".signup-container container"]); removeSelectors([".signup-container container"]);
} }
if (matchDomain(["thespinoff.co.nz"])) { if (matchDomain(["thespinoff.co.nz"])) {
removeSelectors([".the-spinoff-club-interruptive", ".bulletin-signup"]); removeSelectors([
".the-spinoff-club-interruptive",
".bulletin-signup",
".sponsor_post_footer"
]);
} }
function matchDomain(domains) { function matchDomain(domains) {
@ -84,7 +88,7 @@
return displayNone || visibilityHidden; return displayNone || visibilityHidden;
}) })
.forEach((element) => element && element.remove()); .forEach((element) => element && element.remove());
}, 1000); }, 500);
} }
function removeSelectors(selectors) { function removeSelectors(selectors) {
@ -99,6 +103,6 @@
return undefined; return undefined;
}); });
removeDOMElement(...elements); removeDOMElement(...elements);
}, 1000); }, 500);
} }
})(); })();