diff --git a/background.js b/background.js index 177f3ab..4e99b39 100644 --- a/background.js +++ b/background.js @@ -181,6 +181,12 @@ const remove_cookies_select_hold = { // select only specific cookie(s) to drop from remove_cookies domains const remove_cookies_select_drop = { + '.ad.nl': ['temptationTrackingId'], + '.www.ad.nl': ['none'], + 'www.ad.nl': ['none'], + '.ed.nl': ['temptationTrackingId'], + '.www.ed.nl': ['none'], + 'www.ed.nl': ['none'], 'www.nrc.nl': ['counter'] } diff --git a/contentScript.js b/contentScript.js index 5312c80..168111a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -115,8 +115,9 @@ if (window.location.href.indexOf("bloombergquint.com") !== -1) { if (window.location.href.indexOf("bloomberg.com") !== -1) { document.addEventListener('DOMContentLoaded', () => { const fence = document.querySelector('.fence-body'); - if (fence) + if (fence){ fence.classList.remove('fence-body'); + } const paywall = document.getElementById('paywall-banner'); removeDOMElement(paywall); }); @@ -128,15 +129,12 @@ if (window.location.href.indexOf('telegraaf.nl') !== -1) { if (paywall) { window.location.reload(true); } - }, 500); // Delay (in milliseconds) + }, 1000); // Delay (in milliseconds) } -if (window.location.href.indexOf('ed.nl') !== -1) { - const paywall = document.querySelector('.article__component.article__component--paywall-module-notification'); - if (paywall) { - paywall.remove(); - paywall = null; - } +if (window.location.href.indexOf('ad.nl') !== -1 || window.location.href.indexOf('ed.nl') !== -1) { + let paywall = document.querySelector('.article__component.article__component--paywall-module-notification'); + removeDOMElement(paywall); } if (window.location.href.indexOf("parool.nl") !== -1 || window.location.href.indexOf("trouw.nl") !== -1 || window.location.href.indexOf("volkskrant.nl") !== -1) { diff --git a/manifest.json b/manifest.json index 6ab2933..3b3cd6d 100644 --- a/manifest.json +++ b/manifest.json @@ -9,6 +9,7 @@ "*://*.bloomberg.com/*", "*://*.businessinsider.com/*", "*://*.caixinglobal.com/*", + "*://*.ad.nl/*", "*://*.ed.nl/*", "*://*.haaretz.co.il/*", "*://*.lemonde.fr/*",