From 1bbe7ce5438f9b53fe3d5a0f743a837d764d034c Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 10 Jun 2021 07:29:52 +0200 Subject: [PATCH] Fix-update La Stampa --- changelog.txt | 1 + contentScript.js | 4 ++-- custom/manifest.json | 2 +- manifest.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index b89d3a3..53c1e59 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome 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 100755 --- 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/custom/manifest.json b/custom/manifest.json index dbd5c0a..1e81e74 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -30,5 +30,5 @@ "webRequestBlocking", "" ], - "version": "2.2.4.2" + "version": "2.2.4.3" } \ No newline at end of file diff --git a/manifest.json b/manifest.json index eaec213..1030f54 100755 --- a/manifest.json +++ b/manifest.json @@ -512,5 +512,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.2.4.2" + "version": "2.2.4.3" } \ No newline at end of file