From 2069a6c51594448d6162bb56dfed9c50d6bf791b Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 7 Apr 2023 09:47:27 +0200 Subject: [PATCH] Fix Gannett Group (identify sites) --- background.js | 4 +--- changelog.txt | 1 + contentScript_once.js | 2 +- custom/manifest.json | 2 +- manifest.json | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/background.js b/background.js index 14ab232d..56e23521 100644 --- a/background.js +++ b/background.js @@ -1332,9 +1332,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) { nofix_sites.push(custom_domain); else { rules = Object.values(defaultSites).filter(x => x.domain === group)[0]; - if (group === '###_usa_gannett') - rules.amp_unhide = 1; - else if (group === '###_de_madsack') + if (group === '###_de_madsack') if (!set_var_sites.includes(custom_domain)) set_var_sites.push(custom_domain); } diff --git a/changelog.txt b/changelog.txt index 023dc623..2b30a9c7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release Post-release Add Haas Mediengruppe (opt-in to custom sites) Remove Griffith Review (fix obsolete) +Fix Gannett Group (identify sites) Fix LesEchos.fr (json) * v3.1.2.0 (2023-04-02) diff --git a/contentScript_once.js b/contentScript_once.js index ff7ae1dc..f1125509 100644 --- a/contentScript_once.js +++ b/contentScript_once.js @@ -91,7 +91,7 @@ window.setTimeout(function () { group = '###_ca_postmedia'; else if (document.querySelector('script[src*=".axate.io/"], script[src*=".agate.io/"]')) group = '###_uk_axate.io'; - else if (document.querySelector('link[href*=".gannett-cdn.com/"]')) + else if (document.querySelector('img[srcset^="https://www.gannett-cdn.com/"]')) group = '###_usa_gannett'; else if (document.querySelector('script[src*="/treg.hearstnp.com/"]')) group = '###_usa_hearst_comm'; diff --git a/custom/manifest.json b/custom/manifest.json index 6eda4c86..17ca1b9b 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.2.2" + "version": "3.1.2.3" } diff --git a/manifest.json b/manifest.json index 2c62f4d2..02db6834 100644 --- a/manifest.json +++ b/manifest.json @@ -747,5 +747,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.2.2" + "version": "3.1.2.3" }