From 55e7f6bb1400d1d87169d670e427986f30b20484 Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Tue, 17 Nov 2020 15:01:12 +1300 Subject: [PATCH] cosmetic filters for newshub. --- readerserver/scraper/browser/scripts/cosmetic-filters.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/readerserver/scraper/browser/scripts/cosmetic-filters.js b/readerserver/scraper/browser/scripts/cosmetic-filters.js index 921d0b8..adfc9ca 100644 --- a/readerserver/scraper/browser/scripts/cosmetic-filters.js +++ b/readerserver/scraper/browser/scripts/cosmetic-filters.js @@ -34,7 +34,12 @@ removeSelectors([".article_content__section", ".bio"]); } if (matchDomain(["newshub.co.nz"])) { - removeSelectors([".c-ArticleHeading-authorPicture", ".relatedarticles"]); + removeSelectors([ + ".c-ArticleHeading-authorPicture", + ".relatedarticles", + ".ArticleAttribution", + '.GlobalFooter' + ]); } if (matchDomain(["tvnz.co.nz"])) { removeSelectors([".signup-container container"]);