From 8f6a57310acb1289647220a7b817b866c07d82d5 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 28 May 2020 18:18:54 +0200 Subject: [PATCH] Fix-update DeMorgen.be (overlay) --- contentScript.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contentScript.js b/contentScript.js index 7b5c18a..bf33c23 100644 --- a/contentScript.js +++ b/contentScript.js @@ -173,9 +173,11 @@ else if (matchDomain("nzherald.co.nz")) { else if (matchDomain(["parool.nl", "trouw.nl", "volkskrant.nl", "humo.be", "demorgen.be"])) { 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); + let top_banner = document.querySelector('div[data-temptation-position="PAGE_TOP"]'); + let paywall = document.querySelector('div[data-temptation-position="ARTICLE_BOTTOM"]'); + let hidden_section = document.querySelector('div[data-temptation-position="ARTICLE_INLINE"]'); + let overlay = document.querySelector('div[data-temptation-position="PAGE_BOTTOM"]'); + removeDOMElement(top_banner, paywall, hidden_section, overlay); }); }