From 29831f8ea593476062130887826999314ad55212 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 29 Aug 2023 18:48:00 +0200 Subject: [PATCH] Fix Forbes (menu) --- changelog.txt | 1 + contentScript.js | 5 +++++ custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 3 +-- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index caa1384e..2ec4d33c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Fix Forbes (menu) Fix Star Tribune (css) * v3.3.1.0 (2023-08-27) diff --git a/contentScript.js b/contentScript.js index 29e42fcf..f2903bc8 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3732,6 +3732,11 @@ else if (matchDomain('firstthings.com')) { removeDOMElement(paywall); } +else if (matchDomain('forbes.com')) { + waitDOMAttribute('body', 'body', 'class', node => node.removeAttribute('class'), true); + csDoneOnce = true; +} + else if (matchDomain('foreignaffairs.com')) { window.setTimeout(function () { let paywall = document.querySelector('.paywall'); diff --git a/custom/manifest.json b/custom/manifest.json index 12ff6715..f59e00cb 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.3.1.1" + "version": "3.3.1.2" } diff --git a/manifest.json b/manifest.json index f2431d50..4652ffe4 100644 --- a/manifest.json +++ b/manifest.json @@ -792,5 +792,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.3.1.1" + "version": "3.3.1.2" } diff --git a/sites.js b/sites.js index e1ea673c..7a530a55 100644 --- a/sites.js +++ b/sites.js @@ -656,8 +656,7 @@ var defaultSites = { "Forbes": { domain: "forbes.com", allow_cookies: 1, - block_js_inline: /\.forbes\.com\/sites\//, - block_regex: /(\.tinypass\.com\/|\.blueconic\.net\/)/ + block_regex: /(\.forbes\.com\/zephr\/feature|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ }, "Foreign Affairs": { domain: "foreignaffairs.com",