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" }