Fix TheTimes.co.uk (only link to archive.today)
This commit is contained in:
parent
3d77e6b2dc
commit
a86e8b81f5
@ -21,13 +21,13 @@ Due to [Google internal policy](https://developer.chrome.com/webstore/program_po
|
|||||||
The following instructions are needed to install third-party extensions in [Chromium](https://en.wikipedia.org/wiki/Chromium_(web_browser))-based desktop browsers.
|
The following instructions are needed to install third-party extensions in [Chromium](https://en.wikipedia.org/wiki/Chromium_(web_browser))-based desktop browsers.
|
||||||
In extension developer mode you can always install BPC by `Load unpacked` (latest master, but no automatic updates) or by crx-file (latest release & automatic updates, but possibly you have to add the extension to the allowlist).
|
In extension developer mode you can always install BPC by `Load unpacked` (latest master, but no automatic updates) or by crx-file (latest release & automatic updates, but possibly you have to add the extension to the allowlist).
|
||||||
|
|
||||||
#### Load unpacked: Chrome, Microsoft Edge or Brave (all desktop))
|
#### Load unpacked: Chrome, Microsoft Edge or Brave (all desktop)
|
||||||
* or add extension to allowlist and install automatically updating crx-file (see next section)
|
* or add extension to allowlist and install automatically updating crx-file (see next section)
|
||||||
|
|
||||||
1. Download this repository as a [ZIP-file from GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/archive/master/bypass-paywalls-chrome-clean-master.zip).
|
1. Download this repository as a [ZIP-file from GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/archive/master/bypass-paywalls-chrome-clean-master.zip).
|
||||||
2. Unzip the file and you should have a folder named `bypass-paywalls-chrome-clean-master`.
|
2. Unzip the file and you should have a folder named `bypass-paywalls-chrome-clean-master`.
|
||||||
3. Move the folder to a permanent location on your computer (do not delete the folder after installation).
|
3. Move the folder to a permanent location on your computer (do not delete the folder after installation).
|
||||||
4. Go to the extensions page (`chrome://extensions` or `edge://extensions`).
|
4. Go to the extensions page (`chrome://extensions`).
|
||||||
5. Enable Developer Mode.
|
5. Enable Developer Mode.
|
||||||
6. Click `Load unpacked` and select the extension folder.
|
6. Click `Load unpacked` and select the extension folder.
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ If you're familiar with Git(Hub)-clients you can also clone this repo and update
|
|||||||
#### Android
|
#### Android
|
||||||
1. Install [Kiwi Browser](https://play.google.com/store/apps/details?id=com.kiwibrowser.browser&hl=nl) or [Yandex Browser](https://play.google.com/store/apps/details?id=com.yandex.browser&hl=en) from the Google PlayStore.
|
1. Install [Kiwi Browser](https://play.google.com/store/apps/details?id=com.kiwibrowser.browser&hl=nl) or [Yandex Browser](https://play.google.com/store/apps/details?id=com.yandex.browser&hl=en) from the Google PlayStore.
|
||||||
2. For Kiwi Browser you have two options:
|
2. For Kiwi Browser you have two options:
|
||||||
* load the CRX-file in releases (auto-updating, no allowlist needed, opt-in for custom sites not working (use kiwi-custom crx; updates to latest regular version))
|
* load the CRX-file in releases (auto-updating, no allowlist needed, opt-in for custom sites not working (use kiwi-custom crx; updates to latest regular version)
|
||||||
* install latest master zip-file (no automatic updates, for custom sites use manifest.json from custom folder).
|
* install latest master zip-file (no automatic updates, for custom sites use manifest.json from custom folder).
|
||||||
3. For Yandex Browser follow Chrome instructions above (load unpacked; step 6: pick manifest.json instead of the folder). If it fails try a few times or use Total Commander (as file manager). You can use a Git client like MGit to clone (and update) this repository on your mobile device.\
|
3. For Yandex Browser follow Chrome instructions above (load unpacked; step 6: pick manifest.json instead of the folder). If it fails try a few times or use Total Commander (as file manager). You can use a Git client like MGit to clone (and update) this repository on your mobile device.\
|
||||||
For custom sites copy manifest.json from custom folder to the main extension folder (optional permissions are lost on reload).
|
For custom sites copy manifest.json from custom folder to the main extension folder (optional permissions are lost on reload).
|
||||||
@ -295,7 +295,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 - Chrome
|
Changelog Bypass Paywalls Clean - Chrome
|
||||||
|
|
||||||
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;
|
||||||
|
@ -39,5 +39,5 @@
|
|||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"<all_urls>"
|
"<all_urls>"
|
||||||
],
|
],
|
||||||
"version": "2.4.5.1"
|
"version": "2.4.5.2"
|
||||||
}
|
}
|
@ -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",
|
||||||
|
@ -558,5 +558,5 @@
|
|||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.4.5.1"
|
"version": "2.4.5.2"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user