From 14787ebc02c1248937a9440fa78ec5c9cd910256 Mon Sep 17 00:00:00 2001 From: magnolia1234 <54500520+magnolia1234@users.noreply.github.com> Date: Wed, 16 Oct 2019 10:10:01 +0200 Subject: [PATCH] Add new Dutch papers --- contentScript.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/contentScript.js b/contentScript.js index e0c8be1..f2375b1 100644 --- a/contentScript.js +++ b/contentScript.js @@ -88,10 +88,26 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) { } }, 300); // Delay (in milliseconds) } +} else if (window.location.href.indexOf('telegraaf.nl') !== -1) { + const paywall = document.getElementById('TEMPRORARY_METERING_ID'); + if (paywall) { + window.location.reload(1); + } +} else 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; + } +} else if (window.location.href.indexOf("parool.nl") !== -1 || window.location.href.indexOf("trouw.nl") !== -1 || window.location.href.indexOf("volkskrant.nl") !== -1) { + document.addEventListener('DOMContentLoaded', () => { + const paywall = document.querySelector('div[data-temptation-position="ARTICLE_BOTTOM"]'); + const hidden_section = document.querySelector('div[data-temptation-position="ARTICLE_INLINE"]'); + removeDOMElement(paywall, hidden_section); + }); } if (window.location.href.indexOf("bloomberg.com") !== -1) { - console.log('inside bloomberg') const paywall = document.getElementById('paywall-banner'); removeDOMElement(paywall); }