diff --git a/background.js b/background.js index a690d6a..81eee52 100644 --- a/background.js +++ b/background.js @@ -877,7 +877,6 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { let allow_ext_source = medium_custom_domain; let bpc_amp_site = false; - let au_swm_site = (header_referer && urlHost(header_referer).endsWith('com.au') && details.url.includes('https://images.thewest.com.au/')); if (isSiteEnabled({url: header_referer})) { let inkl_site = (matchUrlDomain('cdn.jsdelivr.net', details.url) && matchUrlDomain('inkl.com', header_referer)); @@ -893,7 +892,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { bpc_amp_site = matchUrlDomain('cdn.ampproject.org', details.url); } - if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_swm_site) { + if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site) { return; } @@ -1000,7 +999,7 @@ if (matchUrlDomain(change_headers, details.url) && !['font', 'image', 'styleshee if (tabId !== -1) { ext_api.tabs.get(tabId, function (currentTab) { - if (!ext_api.runtime.lastError && currentTab && (isSiteEnabled(currentTab) || medium_custom_domain || au_swm_site)) { + if (!ext_api.runtime.lastError && currentTab && (isSiteEnabled(currentTab) || medium_custom_domain)) { if (currentTab.url !== currentTabUrl) { csDone = false; currentTabUrl = currentTab.url; diff --git a/changelog.txt b/changelog.txt index 84032a4..82e448f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Fix Australia News Corp (amp-redirect) +Fix The Telegraph (modal) Fix The West Australian (regional) * v2.5.3.1 (2022-01-23) diff --git a/sites.js b/sites.js index 51374a7..f0fa5bf 100644 --- a/sites.js +++ b/sites.js @@ -1595,7 +1595,7 @@ var defaultSites = { "The Telegraph": { domain: "telegraph.co.uk", allow_cookies: 1, - block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/ + block_regex: /(\.tinypass\.com\/|\.telegraph\.co\.uk\/martech\/js\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/ }, "The Times": { domain: "thetimes.co.uk", diff --git a/sites_updated.json b/sites_updated.json index b732238..a64f1f5 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -39,5 +39,10 @@ "domain": "jpost.com", "allow_cookies": 1, "block_regex": "\\.jpost\\.com\\/js\\/js_article\\.min\\.js" + }, + "The Telegraph": { + "domain": "telegraph.co.uk", + "allow_cookies": 1, + "block_regex": "(\\.tinypass\\.com\\/|\\.telegraph\\.co\\.uk\\/martech\\/js\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)" } }