From 4e94e7ebdd46d7b95d2efae69f84c96deab291f3 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 30 May 2022 17:18:28 +0200 Subject: [PATCH] Fix LesEchos.fr (refresh) --- changelog.txt | 1 + contentScript.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index ce471dbf..521f5aa9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix LesEchos.fr (refresh) Fix Quartz (newsletter) * v2.7.1.0 (2022-05-29) diff --git a/contentScript.js b/contentScript.js index dc2d6a30..d7efa764 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1408,7 +1408,7 @@ else if (matchDomain('lequipe.fr')) { } } -else if (matchDomain('lesechos.fr') && window.location.href.match(/\d{6,}/)) { +else if (matchDomain('lesechos.fr')) { if (matchDomain('investir.lesechos.fr')) { if (!window.location.href.includes('/amp/')) { let paywall = document.querySelector('div.bloc-paywall'); @@ -1423,7 +1423,7 @@ else if (matchDomain('lesechos.fr') && window.location.href.match(/\d{6,}/)) { } } else { window.setTimeout(function () { - let abo_banner = document.querySelector('div[class*="pgxf3b-2"]'); + let abo_banner = document.querySelector('div[data-testid="paywall"]'); let ad_blocks = document.querySelectorAll('[class*="jzxvkd"'); for (let ad_block of ad_blocks) ad_block.setAttribute('style', 'display:none');