From a1aee1d6483eb53c69285741c89568753e76d4fc Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 27 Mar 2023 18:54:50 +0200 Subject: [PATCH] Fix TownNews sites (js) --- changelog.txt | 1 + contentScript_once.js | 2 +- custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 4 ++-- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/changelog.txt b/changelog.txt index ef402ef1..1bc9e1e6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Fix TownNews sites (js) * v3.1.1.0 (2023-03-26) Add Flair.nl diff --git a/contentScript_once.js b/contentScript_once.js index 74b11e3a..02b7b5db 100644 --- a/contentScript_once.js +++ b/contentScript_once.js @@ -82,7 +82,7 @@ window.setTimeout(function () { } else if (hostname.endsWith('.co.uk')) { if (document.querySelector('footer > div a[href^="https://www.nationalworldplc.com"]')) group = '###_uk_nat_world'; - } else if (hostname.match(/\.(ca|com|net|org)$/)) { + } else if (hostname.match(/\.(ca|com|net|news|org)$/)) { if (document.querySelector('picture > source[srcset*="%2Fgcm.omerlocdn.com%2F"]')) group = '###_ca_gcm'; else if (document.querySelector('script[src*=".postmedia.digital/"], meta[content*=".postmedia.digital/"]')) diff --git a/custom/manifest.json b/custom/manifest.json index 57874fea..3e37872c 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.1.0" + "version": "3.1.1.1" } diff --git a/manifest.json b/manifest.json index ec6154df..9520cdb9 100644 --- a/manifest.json +++ b/manifest.json @@ -744,5 +744,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.1.0" + "version": "3.1.1.1" } diff --git a/sites.js b/sites.js index 9f049223..e002b432 100644 --- a/sites.js +++ b/sites.js @@ -2358,7 +2358,7 @@ var defaultSites = { }, "TownNews sites (Blox CMS; not encrypted)": { domain: "###_usa_townnews", - block_regex_general: /\.com\/shared-content\/art\/tncms\/user\/user\.js/ + block_regex_general: /\/shared-content\/art\/tncms\/user\/user\.js/ }, "TribDss": { domain: "tribdss.com", @@ -2467,7 +2467,7 @@ var custom_flex_not = { "###_uk_axate.io": ["thinkofx.net"], "###_usa_hearst_comm": ["sfgate.com"], "###_usa_mcc": ["mcclatchy.com"], - "###_usa_townnews": ["townnews.com"] + "###_usa_townnews": ["bloxdigital.com", "townnews.com"] } var custom_flex_domains; var custom_flex_not_domains;