From 5d46a597199e658cdb9763d7de38f9470e8084ff Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 7 Dec 2021 17:30:30 +0100 Subject: [PATCH] Fix Repubblica sites (no amp) --- changelog.txt | 1 + contentScript.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 8c89bc7..377c12c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release +Fix Repubblica sites (no amp) * v2.4.6.0 (2021-12-05) Add Artnet diff --git a/contentScript.js b/contentScript.js index 0b1ce01..24c6696 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1128,8 +1128,6 @@ else if (domain = matchDomain(it_repubblica_domains)) { removeDOMElement(premium); if (!url.includes('/podcast/')) { let amphtml = document.querySelector('link[rel="amphtml"]'); - if (!amphtml) - amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')}; if (amphtml) window.location.href = amphtml.href; }