From 75177b25c82016bcec3f6154662d3dae76e7edee Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 27 May 2023 08:54:23 +0200 Subject: [PATCH] Fix Challenges.fr & Sciences et Avenir.fr --- changelog.txt | 1 + contentScript.js | 7 ++----- custom/manifest.json | 2 +- manifest.json | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/changelog.txt b/changelog.txt index b3db9a4c..6721d9be 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Post-release Add GauchaZH Add VmnMedia.nl Group (opt-in to custom sites) Remove Weltkunst.de (fix obsolete) +Fix Challenges.fr & Sciences et Avenir.fr Fix Defector (cookie) Fix Mediahuis Noord (json) Fix Quora (AI bot crash) diff --git a/contentScript.js b/contentScript.js index 0a6f6cee..2967d1d9 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1385,11 +1385,8 @@ else if (matchDomain(['challenges.fr', 'sciencesetavenir.fr'])) { if (window.location.pathname.endsWith('.amp')) { amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"'); } else { - let amorce = document.querySelector('.amorce'); - if (matchDomain('sciencesetavenir.fr')) - hideDOMElement(amorce); - else if (amorce) - amorce.classList.remove('amorce'); + let amorce = document.querySelector('div.amorce.manual'); + hideDOMElement(amorce); let content = document.querySelectorAll('.user-paying-content'); for (let elem of content) { elem.classList.remove('user-paying-content'); diff --git a/custom/manifest.json b/custom/manifest.json index 6ab6e336..b0428273 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.9.6" + "version": "3.1.9.7" } diff --git a/manifest.json b/manifest.json index 840494f6..008de8fb 100644 --- a/manifest.json +++ b/manifest.json @@ -752,5 +752,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.9.6" + "version": "3.1.9.7" }