From 7af1897189d4b488b55eb1227b268bbc7dc8c618 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 8 Jul 2020 17:58:08 +0200 Subject: [PATCH] =?UTF-8?q?Fix-update=20Neue=20Z=C3=BCrcher=20Zeitung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- background.js | 2 ++ contentScript.js | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/background.js b/background.js index 19f1452..b940c76 100644 --- a/background.js +++ b/background.js @@ -51,6 +51,7 @@ var allow_cookies = [ 'nationalreview.com', 'newrepublic.com', 'nytimes.com', +'nzz.ch', 'parool.nl', 'quora.com', 'scribd.com', @@ -112,6 +113,7 @@ var use_google_bot_default = [ 'intelligentinvestor.com.au', 'mexiconewsdaily.com', 'miamiherald.com', +'nzz.ch', 'quora.com', 'republic.ru', 'seekingalpha.com', diff --git a/contentScript.js b/contentScript.js index 3e2ac3f..1c0a9a5 100644 --- a/contentScript.js +++ b/contentScript.js @@ -623,12 +623,8 @@ else if (matchDomain('journaldunet.com')) { } else if (matchDomain('nzz.ch')) { - let messagebox = document.querySelector('.messagebox'); - removeDOMElement(messagebox); - let overlay = document.querySelector('.semi-disruptive-overlay__closebtn'); - if (overlay) { - overlay.click(); - } + let regwall = document.querySelector('.dynamic-regwall'); + removeDOMElement(regwall); } else if (matchDomain('lejdd.fr')) {