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.
|
||||
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)
|
||||
|
||||
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`.
|
||||
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.
|
||||
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
|
||||
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:
|
||||
* 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).
|
||||
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).
|
||||
@ -295,7 +295,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 - Chrome
|
||||
|
||||
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;
|
||||
|
@ -39,5 +39,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.4.5.1"
|
||||
"version": "2.4.5.2"
|
||||
}
|
@ -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",
|
||||
|
@ -558,5 +558,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.4.5.1"
|
||||
"version": "2.4.5.2"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user