From 0527749e5ab9791015fdccbd544750668c9587bd Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 9 Jul 2020 20:53:36 +0200 Subject: [PATCH] Fix-update The Hindu --- background.js | 1 + contentScript.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index 139dd60..895467f 100644 --- a/background.js +++ b/background.js @@ -62,6 +62,7 @@ var allow_cookies = [ 'the-american-interest.com', 'theathletic.co.uk', 'theathletic.com', +'thehindu.com', 'themarker.com', 'trouw.nl', 'volkskrant.nl', diff --git a/contentScript.js b/contentScript.js index f4a44e3..881d683 100644 --- a/contentScript.js +++ b/contentScript.js @@ -227,9 +227,10 @@ else if (matchDomain('ft.com')) { else if (matchDomain("thehindu.com")) { document.addEventListener('DOMContentLoaded', () => { + let counter = document.querySelector('#test'); let co_banner = document.querySelector('.co-banner'); let support = document.querySelector('div.support-jlm'); - removeDOMElement(co_banner, support); + removeDOMElement(counter, co_banner, support); }); }