diff --git a/background.js b/background.js index 4700f254..d6012d2c 100644 --- a/background.js +++ b/background.js @@ -630,6 +630,8 @@ function add_grouped_sites(init_rules) { allow_cookies.push(domain); if (['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 e9397688..dfd3bb3e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix Messaggero Veneto (GElocal) * v2.3.9.0 (2021-10-10) Add Lee Enterprises Group (local USA) diff --git a/contentScript.js b/contentScript.js index 973bd685..69e0dec9 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1131,11 +1131,11 @@ 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)) { + if (['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain) || ['messaggeroveneto.gelocal.it'].includes(window.location.hostname)) { let premium = document.querySelector('#paywall, iframe#__limio_frame'); if (premium) { removeDOMElement(premium); - if (['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain) && !url.includes('/podcast/')) { + if (!url.includes('/podcast/')) { let amphtml = document.querySelector('link[rel="amphtml"]'); if (!amphtml) amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')}; diff --git a/manifest.json b/manifest.json index cc59ba80..2552b2ff 100644 --- a/manifest.json +++ b/manifest.json @@ -565,5 +565,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.9.0" + "version": "2.3.9.1" } \ No newline at end of file