From b4b22baa37b1393a318093c1e9934f6ab80a4fbb Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 4 Mar 2023 10:33:24 +0100 Subject: [PATCH] Fix Berliner Zeitung --- changelog.txt | 1 + contentScript.js | 6 ++++-- custom/manifest.json | 2 +- manifest.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index c165ddc..fb22081 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Add Bloomberg Adria Add DN.no (cached articles only) Remove TagesAnzeiger.ch (fix obsolete) Remove Welt.de (fix obsolete) +Fix Berliner Zeitung Fix Mediahuis Noord Fix mobile user-agent for Google webcache Fix New Scientist diff --git a/contentScript.js b/contentScript.js index b8edf8f..e54a0ee 100644 --- a/contentScript.js +++ b/contentScript.js @@ -583,8 +583,10 @@ else if (matchDomain('automobilwoche.de')) { } else if (matchDomain('berliner-zeitung.de')) { -let ads = document.querySelectorAll('[id^="traffective-ad"], [class^="ad-slot_wrapper"], [class^="outbrain_container"]'); - removeDOMElement(...ads); + window.setTimeout(function () { + let ads = document.querySelectorAll('[id^="traffective-ad"], [class^="ad-slot_wrapper"], [class^="outbrain_container"]'); + hideDOMElement(...ads); + }, 1000); } else if (matchDomain('cicero.de')) { diff --git a/custom/manifest.json b/custom/manifest.json index 3a4b14d..ab16a09 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.0.7.4" + "version": "3.0.7.5" } diff --git a/manifest.json b/manifest.json index 9bdd495..ef98b68 100644 --- a/manifest.json +++ b/manifest.json @@ -743,5 +743,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.0.7.4" + "version": "3.0.7.5" }