mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Fix TheTimes.co.uk (only link to archive.today)
This commit is contained in:
parent
6e8e21c13b
commit
d0ea8844b9
7 changed files with 38 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -570,5 +570,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.4.5.1"
|
||||
"version": "2.4.5.2"
|
||||
}
|
1
sites.js
1
sites.js
|
@ -1477,6 +1477,7 @@ var defaultSites = {
|
|||
},
|
||||
"The Times": {
|
||||
domain: "thetimes.co.uk",
|
||||
allow_cookies: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"The Times Literary Supplement": {
|
||||
|
|
Loading…
Reference in a new issue