From 1469273c28f54a13143b7966db4ef872cf23192b Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 6 Jul 2021 08:35:56 +0200 Subject: [PATCH] Fix Il Secolo XIX (amp-redirect) --- changelog.txt | 1 + contentScript.js | 4 ++-- manifest.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 62e26f4f..0bb4600f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix Il Secolo XIX (amp-redirect) Fix WaPo (amp) * v2.2.8.0 (2021-07-04) diff --git a/contentScript.js b/contentScript.js index 2977406f..09b980e9 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1072,7 +1072,7 @@ else if (domain = matchDomain(it_repubblica_domains)) { let premium = document.querySelector('.paywall-adagio, #paywall'); if (premium) { removeDOMElement(premium); - if (['lastampa.it', 'repubblica.it'].includes(domain)) { + if (['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) { let amphtml = document.querySelector('link[rel="amphtml"]'); if (!amphtml) amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')}; @@ -1080,7 +1080,7 @@ else if (domain = matchDomain(it_repubblica_domains)) { window.location.href = amphtml.href; } } - if (!['lastampa.it', 'repubblica.it'].includes(domain)) { + if (!['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) { window.setTimeout(function () { let article_body = document.querySelector('div#article-body[style]'); if (article_body) diff --git a/manifest.json b/manifest.json index d1f399c3..c308bf7f 100644 --- a/manifest.json +++ b/manifest.json @@ -536,5 +536,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.2.8.1" + "version": "2.2.8.2" } \ No newline at end of file