From 5071b9f11991e3d72c83eb368d9ebec6d5bc51ce Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 12 Apr 2021 18:03:12 +0200 Subject: [PATCH] Bugfix Le Dauphine (plus some French sites) --- changelog.txt | 1 + contentScript.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 79eba39..7201c5b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Bugfix Le Dauphine (plus some French sites) * v2.1.6.0 (2021-04-11) Add Dagens Industri (Sweden) diff --git a/contentScript.js b/contentScript.js index 32418c8..eeb44b5 100644 --- a/contentScript.js +++ b/contentScript.js @@ -805,7 +805,9 @@ else if (matchDomain('charliehebdo.fr')) { let poool_widget = document.querySelector('div#poool-widget'); removeDOMElement(poool_widget); }, 500); // Delay (in milliseconds) -} else if (matchDomain('esprit.presse.fr')) { +} + +else if (matchDomain('esprit.presse.fr')) { let paywall = document.querySelector('.panel-popup-paywall'); removeDOMElement(paywall); } @@ -852,7 +854,7 @@ else if (matchDomain(['lejdd.fr', 'parismatch.com'])) { } } -if (matchDomain('la-croix.com')) { +else if (matchDomain('la-croix.com')) { let url = window.location.href; if (!url.includes('la-croix.com/amp/')) { let paywall_host_param = document.querySelector('#paywall-host-param');