From 032c9166a612b1bae24061c8bffb8d3b994107d8 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 10 Jun 2021 07:30:25 +0200 Subject: [PATCH] Fix-update La Stampa --- 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 fac3cb7..3a6372c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Fix-update Atlantico.fr +Fix-update La Stampa Fix-update Medium/Towards Data Science (multimedia) * v2.2.4.0 (2021-06-06) diff --git a/contentScript.js b/contentScript.js index 4e0e3c8..06cebb1 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1030,8 +1030,8 @@ else if (matchDomain('rep.repubblica.it')) { } else if (domain = matchDomain(it_repubblica_domains)) { - let url = window.location.href; - if (!url.includes('/amp/')) { + let url = window.location.href.split('?')[0]; + if (!url.match(/\amp(\/)?$/)) { let premium = document.querySelector('.paywall-adagio, #paywall'); if (premium) { removeDOMElement(premium); diff --git a/manifest.json b/manifest.json index 6eeaafa..abe59db 100644 --- a/manifest.json +++ b/manifest.json @@ -524,5 +524,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.2.4.2" + "version": "2.2.4.3" } \ No newline at end of file