From 4794843adc4cbd951d5e180d33391bc530f799d1 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 13 Oct 2021 17:27:19 +0200 Subject: [PATCH] Fix GElocal.it --- background.js | 4 +--- changelog.txt | 2 +- contentScript.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/background.js b/background.js index 6338cf7..99f494b 100644 --- a/background.js +++ b/background.js @@ -631,10 +631,8 @@ function add_grouped_sites(init_rules) { } for (let domain of it_repubblica_domains) { allow_cookies.push(domain); - if (['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) + if (['gelocal.it', 'ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) use_google_bot.push(domain); - if (['gelocal.it'].includes(domain)) - use_google_bot.push('messaggeroveneto.gelocal.it'); blockedRegexes[domain] = /(scripts\.repubblica\.it\/pw\/pw\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|user-notification)-.+\.js)/; } for (let domain of nl_pg_domains) { diff --git a/changelog.txt b/changelog.txt index d28dea8..d973cd4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,7 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Westfaelische Nachrichten (Germany) -Fix Messaggero Veneto (GElocal) +Fix GElocal.it * v2.3.9.0 (2021-10-10) Add Lee Enterprises Group (local USA) diff --git a/contentScript.js b/contentScript.js index 4bd3d38..4de83aa 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1131,7 +1131,7 @@ else if (matchDomain('rep.repubblica.it')) { else if (domain = matchDomain(it_repubblica_domains)) { let url = window.location.href.split('?')[0]; if (!url.match(/\amp(\/)?$/)) { - if (['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain) || ['messaggeroveneto.gelocal.it'].includes(window.location.hostname)) { + if (['gelocal.it', 'ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) { let premium = document.querySelector('#paywall, iframe#__limio_frame'); if (premium) { removeDOMElement(premium);