Fix The Telegraph (modal)

This commit is contained in:
magnolia1234 2022-01-25 19:28:38 +01:00
parent d91c909889
commit f598449474
4 changed files with 9 additions and 4 deletions

View file

@ -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;

View file

@ -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)

View file

@ -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",

View file

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