From 5b82051baf9265076a626cc57c13a6a432a97cac Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 31 Mar 2024 16:49:44 +0200 Subject: [PATCH] Fix Wiwo.de (anti-adblocker) --- changelog.txt | 1 + contentScript.js | 2 ++ custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 1 + sites_updated.json | 7 +++++++ 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 73d5585..a654dd3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ Remove Hbvl.be (fix obsolete) Remove The Banker (fix obsolete) Fix Humanite.fr Fix LeMonde.fr (bug; update rules) +Fix Wiwo.de (anti-adblocker) Fix WSJ (intro video) Update custom sites (search) diff --git a/contentScript.js b/contentScript.js index 3f1cba7..014c30a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1449,6 +1449,8 @@ else if (matchDomain('weser-kurier.de')) { else if (matchDomain('wiwo.de')) { let url = window.location.href; getArchive(url, 'div.o-paywall', '', 'article'); + let banner = document.querySelector('div.c-overscroller'); + hideDOMElement(banner); } else if (matchDomain('zeit.de')) { diff --git a/custom/manifest.json b/custom/manifest.json index c90c6d2..94e71c2 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.6.1.6" + "version": "3.6.1.7" } diff --git a/manifest.json b/manifest.json index b05de2b..c34f37c 100644 --- a/manifest.json +++ b/manifest.json @@ -866,5 +866,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.6.1.6" + "version": "3.6.1.7" } diff --git a/sites.js b/sites.js index c9a75ce..ed4261c 100644 --- a/sites.js +++ b/sites.js @@ -2873,6 +2873,7 @@ var defaultSites = { "WirtschaftsWoche (fetch from archive.is)": { domain: "wiwo.de", allow_cookies: 1, + block_regex: /\.wiwo\.de\/js\/.+\/wt\..+\.js/, cs_dompurify: 1 }, "Wonderzine": { diff --git a/sites_updated.json b/sites_updated.json index 882d92e..4661d92 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -135,5 +135,12 @@ "block_regex": "(cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", "cs_dompurify": 1, "upd_version": "3.6.0.6" + }, + "WirtschaftsWoche": { + "domain": "wiwo.de", + "allow_cookies": 1, + "block_regex": "\\.wiwo\\.de\\/js\\/.+\\/wt\\..+\\.js", + "ld_archive_is": "div.o-paywall|article", + "upd_version": "3.6.1.7" } }