From b2fc329f03f467262a8c4f65e740f4ac810687ed Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 31 Oct 2021 20:19:15 +0100 Subject: [PATCH] Fix Il Fatto Quotidiano --- changelog.txt | 1 + contentScript.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 4d90ee9e..01a5c802 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Fix Barron's (timing) +Fix Il Fatto Quotidiano Fix Boston Globe (incognito mode) Fix Westfaelische Nachrichten & Westfalen-Blatt diff --git a/contentScript.js b/contentScript.js index 54c33760..72e92edc 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1074,9 +1074,9 @@ else if (matchDomain('ilfattoquotidiano.it')) { let amp_ads = document.querySelectorAll('amp-ad, div#_4sVideoContainer'); removeDOMElement(...amp_ads); } else { - let paywall = pageContains('section.article-body > p', '[...]'); - if (paywall.length > 0) { - removeDOMElement(...paywall); + let paywall = document.querySelector('div.read-more'); + if (paywall) { + removeDOMElement(paywall); window.location.href = url.split('?')[0] + 'amp'; } }