Fix TheTimes.co.uk (only link to archive.today)

merge-requests/3/head
magnolia1234 3 years ago
parent 6e8e21c13b
commit d0ea8844b9

@ -272,7 +272,7 @@ Grouped in options:\
[The New Statesman](https://www.newstatesman.com) - [The New Statesman](https://www.newstatesman.com) -
[The Spectator](https://www.spectator.co.uk) - [The Spectator](https://www.spectator.co.uk) -
[The Telegraph](https://www.telegraph.co.uk) - [The Telegraph](https://www.telegraph.co.uk) -
[The Times](https://www.thetimes.co.uk) - [The Times (link to archive.today)](https://www.thetimes.co.uk) -
[The Times Literary Supplement](https://www.the-tls.co.uk) [The Times Literary Supplement](https://www.the-tls.co.uk)
##### Denmark ##### Denmark

@ -822,11 +822,12 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
var googlebotEnabled = matchUrlDomain(use_google_bot, details.url) && var googlebotEnabled = matchUrlDomain(use_google_bot, details.url) &&
!(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) && !(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
!(matchUrlDomain('theaustralian.com.au', details.url) && enabledSites.includes('#options_disable_gb_theaustralian')) && !(matchUrlDomain('theaustralian.com.au', details.url) && enabledSites.includes('#options_disable_gb_theaustralian')) &&
!(matchUrlDomain('thetimes.co.uk', details.url) && !details.url.match(/\/epaper\.thetimes\.co\.uk\//)) &&
!(matchUrlDomain('wsj.com', details.url) && enabledSites.includes('#options_disable_gb_wsj')); !(matchUrlDomain('wsj.com', details.url) && enabledSites.includes('#options_disable_gb_wsj'));
var bingbotEnabled = matchUrlDomain(use_bing_bot, details.url) && var bingbotEnabled = matchUrlDomain(use_bing_bot, details.url) &&
!(matchUrlDomain('stratfor.com', details.url) && details.url.match(/(\/(\d){4}-([a-z]||-)+-forecast(-([a-z]|-)+)?|-forecast-(\d){4}-([a-z]|[0-9]||-)+)$/)); !(matchUrlDomain('stratfor.com', details.url) && details.url.match(/(\/(\d){4}-([a-z]||-)+-forecast(-([a-z]|-)+)?|-forecast-(\d){4}-([a-z]|[0-9]||-)+)$/));
if (matchUrlDomain(change_headers, details.url) && (!['font', 'image', 'stylesheet'].includes(details.type) || matchUrlDomain(['thetimes.co.uk'], details.url))) { if (matchUrlDomain(change_headers, details.url) && !['font', 'image', 'stylesheet'].includes(details.type)) {
// if referer exists, set it // if referer exists, set it
requestHeaders = requestHeaders.map(function (requestHeader) { requestHeaders = requestHeaders.map(function (requestHeader) {
if (requestHeader.name === 'Referer') { if (requestHeader.name === 'Referer') {

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Fix TheTimes.co.uk (only link to archive.today)
Remove Saechsische Zeitung (obsolete) Remove Saechsische Zeitung (obsolete)
* v2.4.5.0 (2021-11-21) * v2.4.5.0 (2021-11-21)

@ -3111,10 +3111,10 @@ function replaceDomElementExt(url, proxy, base64, selector, text_fail = '') {
} }
function archiveLink(url) { function archiveLink(url) {
let archive_url = 'https://archive.today/newest/' + url; let archive_url = 'https://archive.today?run=1&url=' + url;
let text_fail_div = document.createElement('div'); let text_fail_div = document.createElement('div');
text_fail_div.id = 'bpc_archive'; text_fail_div.id = 'bpc_archive';
text_fail_div.appendChild(document.createTextNode('BPC > Read full article text:\r\n')); text_fail_div.appendChild(document.createTextNode('BPC > Full article text:\r\n'));
let a_link = document.createElement('a'); let a_link = document.createElement('a');
a_link.innerText = archive_url; a_link.innerText = archive_url;
a_link.href = archive_url; a_link.href = archive_url;

@ -9,11 +9,6 @@
"domain": "ara.cat", "domain": "ara.cat",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Asiasentinel.com": {
"allow_cookies": 1,
"domain": "asiasentinel.com",
"useragent": "googlebot"
},
"Beobachter.ch": { "Beobachter.ch": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "beobachter.ch", "domain": "beobachter.ch",
@ -24,6 +19,11 @@
"domain": "bnn.de", "domain": "bnn.de",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Calgaryherald.com": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "calgaryherald.com"
},
"Capital.bg": { "Capital.bg": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "capital.bg", "domain": "capital.bg",
@ -37,6 +37,11 @@
"Connexionfrance.com": { "Connexionfrance.com": {
"domain": "connexionfrance.com" "domain": "connexionfrance.com"
}, },
"Eluniversal.com.mx": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "eluniversal.com.mx"
},
"Handelszeitung.ch": { "Handelszeitung.ch": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "handelszeitung.ch", "domain": "handelszeitung.ch",
@ -72,6 +77,11 @@
"domain": "muensterschezeitung.de", "domain": "muensterschezeitung.de",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Nationalobserver.com": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "nationalobserver.com"
},
"Pressandjournal.co.uk": { "Pressandjournal.co.uk": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "pressandjournal.co.uk", "domain": "pressandjournal.co.uk",
@ -82,6 +92,11 @@
"domain": "pv-digest.de", "domain": "pv-digest.de",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Schweizer-illustrierte.ch": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "schweizer-illustrierte.ch"
},
"Speld.nl": { "Speld.nl": {
"domain": "speld.nl" "domain": "speld.nl"
}, },
@ -100,11 +115,21 @@
"The-past.com": { "The-past.com": {
"domain": "the-past.com" "domain": "the-past.com"
}, },
"Thebanker.com": {
"allow_cookies": 1,
"domain": "thebanker.com",
"useragent": "googlebot"
},
"Thenational.scot": { "Thenational.scot": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/", "block_regex": "\\.tinypass\\.com\\/",
"domain": "thenational.scot" "domain": "thenational.scot"
}, },
"Theweek.com": {
"allow_cookies": 1,
"domain": "theweek.com",
"useragent": "googlebot"
},
"Tijorifinance.com": { "Tijorifinance.com": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "tijorifinance.com", "domain": "tijorifinance.com",

@ -570,5 +570,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.4.5.1" "version": "2.4.5.2"
} }

@ -1477,6 +1477,7 @@ var defaultSites = {
}, },
"The Times": { "The Times": {
domain: "thetimes.co.uk", domain: "thetimes.co.uk",
allow_cookies: 1,
useragent: "googlebot" useragent: "googlebot"
}, },
"The Times Literary Supplement": { "The Times Literary Supplement": {

Loading…
Cancel
Save