diff --git a/contentScript.js b/contentScript.js index f521a5f0..fad514c4 100644 --- a/contentScript.js +++ b/contentScript.js @@ -118,9 +118,9 @@ if (window.location.href.indexOf("bloomberg.com") !== -1) { if (fence){ fence.classList.remove('fence-body'); } - const paywall = document.getElementById('paywall-banner'); - removeDOMElement(paywall); }); + const banner = document.getElementById('paywall-banner'); + removeDOMElement(banner); } if (window.location.href.indexOf('telegraaf.nl') !== -1) { @@ -299,6 +299,26 @@ if (window.location.href.indexOf("technologyreview.com") !== -1) { removeDOMElement(meter); } +if (window.location.href.indexOf("thetimes.co.uk") !== -1) { + const block = document.querySelector('.subscription-block'); + removeDOMElement(block); +} + +if (window.location.href.indexOf("haaretz.com") !== -1) { + const popup = document.querySelector('.footer-ruler'); + removeDOMElement(popup); +} + +if (window.location.href.indexOf("asia.nikkei.com") !== -1) { + const popup = document.querySelector('.pw-widget--popup'); + removeDOMElement(popup); +} + +if (window.location.href.indexOf("hbr.org") !== -1) { + const popup = document.querySelector('.persistent-banner'); + removeDOMElement(popup); +} + function removeDOMElement(...elements) { for (let element of elements) { if (element) element.remove(); diff --git a/manifest.json b/manifest.json index 41a3c573..f8e89432 100644 --- a/manifest.json +++ b/manifest.json @@ -32,7 +32,11 @@ "*://*.afr.com/*", "*://*.theglobeandmail.com/*", "*://*.scribd.com/*", - "*://*.technologyreview.com/*" + "*://*.technologyreview.com/*", + "*://*.thetimes.co.uk/*", + "*://*.haaretz.com/*", + "*://*.asia.nikkei.com/*", + "*://*.hbr.org/*" ], "js": ["contentScript.js"] }