From 07093694fd1a8a9a0a7acac18471767284031437 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 10 Sep 2023 17:27:36 +0200 Subject: [PATCH] Fix Automobilwoche.de (js) Fix Tijd.be (belegger subdomain) --- changelog.txt | 2 ++ contentScript.js | 13 +++++++++++++ custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 2 +- sites_updated.json | 40 +++++++++++----------------------------- 6 files changed, 29 insertions(+), 32 deletions(-) diff --git a/changelog.txt b/changelog.txt index e3c87902..ae37f7ab 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add PourLaScience.fr +Fix Automobilwoche.de (js) Fix Inc42 (js) Fix MarketWatch (amp-redirect) Fix Outside magazines (domains obsolete) @@ -11,6 +12,7 @@ Fix Puck.news (ld_json_url) Fix Tes Magazine (css) Fix The Diplomat (magazine) Fix The Wrap (ld_json_url) +Fix Tijd.be (belegger subdomain) Update block general paywall script (fix Ippen.space) * v3.3.2.0 (2023-09-03) diff --git a/contentScript.js b/contentScript.js index 0079f343..fdde0e8f 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2639,6 +2639,19 @@ else if (matchDomain('telegraaf.nl')) { removeDOMElement(...banners); } +else if (matchDomain('tijd.be')) { + if (matchDomain('belegger.tijd.be')) { + let noscroll = document.querySelector('body.js-overflow-hidden'); + if (noscroll) + noscroll.classList.remove('js-overflow-hidden'); + let inert = document.querySelectorAll('[inert]'); + for (let elem of inert) + elem.removeAttribute('inert'); + let banner = document.querySelector('div[data-id="react-paywall-investor"]'); + removeDOMElement(banner); + } +} + else if (matchDomain('vn.nl')) { let paywall = document.querySelector('div.content__message-no-access-container'); if (paywall && dompurify_loaded) { diff --git a/custom/manifest.json b/custom/manifest.json index 86326c3e..1b464798 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.3.2.7" + "version": "3.3.2.8" } diff --git a/manifest.json b/manifest.json index c5082ed7..00106c7c 100644 --- a/manifest.json +++ b/manifest.json @@ -791,5 +791,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.3.2.7" + "version": "3.3.2.8" } diff --git a/sites.js b/sites.js index af6834cb..e54c5599 100644 --- a/sites.js +++ b/sites.js @@ -198,7 +198,7 @@ var defaultSites = { "Automobilwoche": { domain: "automobilwoche.de", allow_cookies: 1, - block_regex: /\.automobilwoche\.de\/sites\/camw\/files\/js\/js_9G4.+\.js/ + block_regex: /\.automobilwoche\.de\/sites\/camw\/files\/js\/js_wB7.+\.js/ }, "AutoPlus.fr": { domain: "autoplus.fr", diff --git a/sites_updated.json b/sites_updated.json index 1901da0f..a19293cb 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -1,4 +1,10 @@ { + "Automobilwoche": { + "domain": "automobilwoche.de", + "allow_cookies": 1, + "block_regex": "\\.automobilwoche\\.de\\/sites\\/camw\\/files\\/js\\/js_wB7.+\\.js", + "upd_version": "3.3.2.8" + }, "Beleggersbelangen.nl": { "domain": "beleggersbelangen.nl", "allow_cookies": 1, @@ -25,11 +31,11 @@ "block_regex": "(\\.tinypass\\.com\\/api\\/tinypass\\.min\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", "upd_version": "3.3.1.7" }, - "Fast Company": { - "domain": "fastcompany.com", - "allow_cookies": 1, - "block_regex": "(\\.tinypass\\.com|\\.fastcompany\\.com\\/script\\.js)", - "upd_version": "3.3.0.6" + "De Tijd": { + "domain": "tijd.be", + "referer": "google", + "cs_code": "[{\"cond\":\"body.js-overflow-hidden\", \"rm_class\":\"js-overflow-hidden\"}, {\"cond\":\"[inert]\", \"rm_attrib\": \"inert\"}, {\"cond\":\"div[data-id='react-paywall-investor']\", \"rm_elem\": 1}]", + "upd_version": "3.3.2.8" }, "Fortune": { "domain": "fortune.com", @@ -38,13 +44,6 @@ "cs_code": "[{\"cond\":\"div.paywallActive\", \"rm_attrib\":\"class\"}]", "upd_version": "3.3.1.5" }, - "Forbes": { - "domain": "forbes.com", - "allow_cookies": 1, - "block_js_inline": "\\.forbes\\.com\\/sites", - "block_regex": "(\\.tinypass\\.com|\\.blueconic\\.net)", - "upd_version": "3.3.0.8" - }, "Inc42": { "domain": "inc42.com", "allow_cookies": 1, @@ -57,12 +56,6 @@ "block_regex_general": "(\\.ippen\\.space\\/js\\/paywall\\.js|\\/sub\\/js\\/pc-offer-west\\.js)", "upd_version": "3.3.2.2" }, - "LeTemps.ch": { - "domain": "letemps.ch", - "allow_cookies": 1, - "ld_google_webcache": "div.post-subscribe|div.post-body-wrapper", - "upd_version": "3.3.0.5" - }, "MarketWatch": { "domain": "marketwatch.com", "allow_cookies": 1, @@ -70,17 +63,6 @@ "amp_redirect": "div#cx-snippet", "upd_version": "3.3.2.6" }, - "Mediahuis Noord": { - "domain": "###_nl_mediahuis_noord", - "group": [ - "dvhn.nl", - "lc.nl" - ], - "allow_cookies": 1, - "block_regex": "(\\.evolok\\.net\\/|\\.ndcmediagroep\\.nl\\/js\\/evolok\\/|\\.nl\\/_\\/zh\\/worker)", - "cs_dompurify": 1, - "upd_version": "3.3.0.1" - }, "Nikkei Asian Review": { "domain": "asia.nikkei.com", "allow_cookies": 1,