diff --git a/README.md b/README.md index 7eecfcd0..c8bb96bc 100644 --- a/README.md +++ b/README.md @@ -272,7 +272,7 @@ Grouped in options:\ [The New Statesman](https://www.newstatesman.com) - [The Spectator](https://www.spectator.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) ##### Denmark diff --git a/background.js b/background.js index f743bfa4..44879afd 100644 --- a/background.js +++ b/background.js @@ -822,11 +822,12 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { var googlebotEnabled = matchUrlDomain(use_google_bot, details.url) && !(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) && !(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')); 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]||-)+)$/)); -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 requestHeaders = requestHeaders.map(function (requestHeader) { if (requestHeader.name === 'Referer') { diff --git a/changelog.txt b/changelog.txt index 4f863640..7a82eeb7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix TheTimes.co.uk (only link to archive.today) Remove Saechsische Zeitung (obsolete) * v2.4.5.0 (2021-11-21) diff --git a/contentScript.js b/contentScript.js index 83b9e07a..50ec49ca 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3111,10 +3111,10 @@ function replaceDomElementExt(url, proxy, base64, selector, text_fail = '') { } 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'); 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'); a_link.innerText = archive_url; a_link.href = archive_url; diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 65753289..e12b3922 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -9,11 +9,6 @@ "domain": "ara.cat", "useragent": "googlebot" }, - "Asiasentinel.com": { - "allow_cookies": 1, - "domain": "asiasentinel.com", - "useragent": "googlebot" - }, "Beobachter.ch": { "allow_cookies": 1, "domain": "beobachter.ch", @@ -24,6 +19,11 @@ "domain": "bnn.de", "useragent": "googlebot" }, + "Calgaryherald.com": { + "allow_cookies": 1, + "block_regex": "\\.tinypass\\.com\\/", + "domain": "calgaryherald.com" + }, "Capital.bg": { "allow_cookies": 1, "domain": "capital.bg", @@ -37,6 +37,11 @@ "Connexionfrance.com": { "domain": "connexionfrance.com" }, + "Eluniversal.com.mx": { + "allow_cookies": 1, + "block_regex": "\\.tinypass\\.com\\/", + "domain": "eluniversal.com.mx" + }, "Handelszeitung.ch": { "allow_cookies": 1, "domain": "handelszeitung.ch", @@ -72,6 +77,11 @@ "domain": "muensterschezeitung.de", "useragent": "googlebot" }, + "Nationalobserver.com": { + "allow_cookies": 1, + "block_regex": "\\.tinypass\\.com\\/", + "domain": "nationalobserver.com" + }, "Pressandjournal.co.uk": { "allow_cookies": 1, "domain": "pressandjournal.co.uk", @@ -82,6 +92,11 @@ "domain": "pv-digest.de", "useragent": "googlebot" }, + "Schweizer-illustrierte.ch": { + "allow_cookies": 1, + "block_regex": "\\.tinypass\\.com\\/", + "domain": "schweizer-illustrierte.ch" + }, "Speld.nl": { "domain": "speld.nl" }, @@ -100,11 +115,21 @@ "The-past.com": { "domain": "the-past.com" }, + "Thebanker.com": { + "allow_cookies": 1, + "domain": "thebanker.com", + "useragent": "googlebot" + }, "Thenational.scot": { "allow_cookies": 1, "block_regex": "\\.tinypass\\.com\\/", "domain": "thenational.scot" }, + "Theweek.com": { + "allow_cookies": 1, + "domain": "theweek.com", + "useragent": "googlebot" + }, "Tijorifinance.com": { "allow_cookies": 1, "domain": "tijorifinance.com", diff --git a/manifest.json b/manifest.json index b4b66ccc..758bda9c 100644 --- a/manifest.json +++ b/manifest.json @@ -570,5 +570,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.4.5.1" + "version": "2.4.5.2" } \ No newline at end of file diff --git a/sites.js b/sites.js index 1d41dada..fb3cdc41 100644 --- a/sites.js +++ b/sites.js @@ -1477,6 +1477,7 @@ var defaultSites = { }, "The Times": { domain: "thetimes.co.uk", + allow_cookies: 1, useragent: "googlebot" }, "The Times Literary Supplement": {