From 78654e0c63eb83ae6158e047430015fd7d63e17b Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Tue, 17 Nov 2020 16:07:33 +1300 Subject: [PATCH] reduce setTimeout. --- .../scraper/headless/scripts/cosmetic-filters.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/readerserver/scraper/headless/scripts/cosmetic-filters.js b/readerserver/scraper/headless/scripts/cosmetic-filters.js index adfc9ca..7a1941a 100644 --- a/readerserver/scraper/headless/scripts/cosmetic-filters.js +++ b/readerserver/scraper/headless/scripts/cosmetic-filters.js @@ -45,7 +45,11 @@ removeSelectors([".signup-container container"]); } 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) { @@ -84,7 +88,7 @@ return displayNone || visibilityHidden; }) .forEach((element) => element && element.remove()); - }, 1000); + }, 500); } function removeSelectors(selectors) { @@ -99,6 +103,6 @@ return undefined; }); removeDOMElement(...elements); - }, 1000); + }, 500); } })();