diff --git a/background.js b/background.js index 3ff47be9..fb2de2f8 100644 --- a/background.js +++ b/background.js @@ -119,7 +119,6 @@ const pg_domains = ["parool.nl", "trouw.nl", "volkskrant.nl", "humo.be", "demorg var remove_cookies_select_drop = { 'ad.nl': ['temptationTrackingId'], 'caixinglobal.com': ['CAIXINGLB_LOGIN_UUID'], - 'deutsche-wirtschafts-nachrichten.de': ['pwall'], 'dn.se': ['randomSplusId'], 'fd.nl': ['socialread'], 'nrc.nl': ['counter'], diff --git a/contentScript.js b/contentScript.js index ab21e7e8..4890025c 100644 --- a/contentScript.js +++ b/contentScript.js @@ -107,7 +107,7 @@ else if (window.location.hostname.endsWith(".com.au") || window.location.hostnam let url = window.location.href; let url_loaded = json_pub._self; if (!url.includes(url_loaded.slice(-10))) - document.location.reload(true); + window.location.reload(true); let article = ''; let div_content = document.createElement('div'); for (let par of json_content) { @@ -680,7 +680,7 @@ else if (matchDomain("lesechos.fr") && window.location.href.match(/-\d{6,}/)) { let article = data.article.data.stripes[0].mainContent[0].data.description; let url_loaded = data.article.data.path; if (!url.includes(url_loaded)) - document.location.reload(true); + window.location.reload(true); let paywallNode = document.querySelector('.post-paywall'); if (paywallNode) { let contentNode = document.createElement('div'); @@ -1502,6 +1502,15 @@ else if (matchDomain("gva.be")) { }, 500); // Delay (in milliseconds) } +else if (matchDomain('deutsche-wirtschafts-nachrichten.de')) { + window.setTimeout(function () { + let hardpay = document.querySelector('.hardpay'); + if (hardpay) { + window.location.reload(true); + } + }, 500); // Delay (in milliseconds) +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) {