Add New Left Review (United Kingdom)
parent
13e98353e0
commit
e8d9fc2338
|
@ -199,6 +199,7 @@ For zip-installation (load unpacked): unzip files to installation folder or use
|
||||||
[Financial Times](https://www.ft.com) -
|
[Financial Times](https://www.ft.com) -
|
||||||
[Irish Independent](https://www.independent.ie) -
|
[Irish Independent](https://www.independent.ie) -
|
||||||
[London Review of Books](https://www.lrb.co.uk) -
|
[London Review of Books](https://www.lrb.co.uk) -
|
||||||
|
[New Left Review](https://newleftreview.org) -
|
||||||
[The Economist](https://www.economist.com) -
|
[The Economist](https://www.economist.com) -
|
||||||
[The Irish Times](https://www.irishtimes.com) -
|
[The Irish Times](https://www.irishtimes.com) -
|
||||||
[The New Statesman](https://www.newstatesman.com) -
|
[The New Statesman](https://www.newstatesman.com) -
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
var ext_api = (typeof browser === 'object') ? browser : chrome;
|
var ext_api = (typeof browser === 'object') ? browser : chrome;
|
||||||
var ext_name = ext_api.runtime.getManifest().name;
|
var ext_name = ext_api.runtime.getManifest().name;
|
||||||
|
|
||||||
const cs_limit_except = ['afr.com', 'elcomercio.pe', 'elpais.com', 'faz.net', 'gestion.pe', 'harpers.org', 'inkl.com', 'la-croix.com', 'lescienze.it', 'techinasia.com'];
|
const cs_limit_except = ['afr.com', 'elcomercio.pe', 'elpais.com', 'faz.net', 'gestion.pe', 'harpers.org', 'inkl.com', 'la-croix.com', 'lescienze.it', 'newleftreview.org', 'techinasia.com'];
|
||||||
var currentTabUrl = '';
|
var currentTabUrl = '';
|
||||||
var csDone = false;
|
var csDone = false;
|
||||||
|
|
||||||
|
@ -81,6 +81,7 @@ var allow_cookies_default = [
|
||||||
'nationalgeographic.com',
|
'nationalgeographic.com',
|
||||||
'nationalpost.com',
|
'nationalpost.com',
|
||||||
'nationalreview.com',
|
'nationalreview.com',
|
||||||
|
'newleftreview.org',
|
||||||
'newrepublic.com',
|
'newrepublic.com',
|
||||||
'noordhollandsdagblad.nl',
|
'noordhollandsdagblad.nl',
|
||||||
'nouvelobs.com',
|
'nouvelobs.com',
|
||||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
Add group TorStar (Canada)
|
Add group TorStar (Canada)
|
||||||
|
Add New Left Review (United Kingdom)
|
||||||
Fix-update Toronto Star (overlay)
|
Fix-update Toronto Star (overlay)
|
||||||
Update options (excluded sites)
|
Update options (excluded sites)
|
||||||
|
|
||||||
|
|
|
@ -1891,6 +1891,37 @@ else if (matchDomain('seekingalpha.com')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('newleftreview.org')) {
|
||||||
|
let url = window.location.href;
|
||||||
|
let paywall = document.querySelector('div.promo-wrapper');
|
||||||
|
if (paywall) {
|
||||||
|
let proxyurl = 'https://cors-anywhere.herokuapp.com/';
|
||||||
|
let nlr_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('//')[1];
|
||||||
|
fetch(proxyurl + nlr_cache, { headers: {"Content-Type": "text/plain", "X-Requested-With": "XMLHttpRequest" } })
|
||||||
|
.then(response => {
|
||||||
|
let article_old = document.querySelector('div.article-page');
|
||||||
|
let footer = document.querySelector('div.article-footer');
|
||||||
|
if (response.ok) {
|
||||||
|
response.text().then(html => {
|
||||||
|
let parser = new DOMParser();
|
||||||
|
let doc = parser.parseFromString(html, 'text/html');
|
||||||
|
let json = doc.querySelector('div.article-page');
|
||||||
|
if (json) {
|
||||||
|
if (article_old && footer) {
|
||||||
|
removeDOMElement(article_old);
|
||||||
|
footer.parentElement.insertBefore(json, footer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (article_old && footer)
|
||||||
|
article_old.appendChild(document.createTextNode('Article not yet in Google webcache ...'));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
removeDOMElement(paywall);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain('lavanguardia.com')) {
|
else if (matchDomain('lavanguardia.com')) {
|
||||||
let paywall = document.querySelector('[class*="ev-open-modal-paywall"]');
|
let paywall = document.querySelector('[class*="ev-open-modal-paywall"]');
|
||||||
let infinite_loading = document.querySelector('#infinite-loading');
|
let infinite_loading = document.querySelector('#infinite-loading');
|
||||||
|
|
|
@ -243,6 +243,7 @@
|
||||||
"*://*.nautil.us/*",
|
"*://*.nautil.us/*",
|
||||||
"*://*.neuepresse.de/*",
|
"*://*.neuepresse.de/*",
|
||||||
"*://*.newcastleherald.com.au/*",
|
"*://*.newcastleherald.com.au/*",
|
||||||
|
"*://*.newleftreview.org/*",
|
||||||
"*://*.newrepublic.com/*",
|
"*://*.newrepublic.com/*",
|
||||||
"*://*.news-gazette.com/*",
|
"*://*.news-gazette.com/*",
|
||||||
"*://*.news-mail.com.au/*",
|
"*://*.news-mail.com.au/*",
|
||||||
|
@ -407,5 +408,5 @@
|
||||||
"*://*.repstatic.it/*",
|
"*://*.repstatic.it/*",
|
||||||
"*://*.userzoom.com/*"
|
"*://*.userzoom.com/*"
|
||||||
],
|
],
|
||||||
"version": "2.0.2.3"
|
"version": "2.0.2.4"
|
||||||
}
|
}
|
1
sites.js
1
sites.js
|
@ -138,6 +138,7 @@ var defaultSites =
|
||||||
"National Review": "nationalreview.com",
|
"National Review": "nationalreview.com",
|
||||||
"Nautilus": "nautil.us",
|
"Nautilus": "nautil.us",
|
||||||
"Neue Zürcher Zeitung": "nzz.ch",
|
"Neue Zürcher Zeitung": "nzz.ch",
|
||||||
|
"New Left Review": "newleftreview.org",
|
||||||
"New York Magazine (+ Grub Street, The Cut & Vulture)": "###_usa_nymag",
|
"New York Magazine (+ Grub Street, The Cut & Vulture)": "###_usa_nymag",
|
||||||
"New Zealand Herald": "nzherald.co.nz",
|
"New Zealand Herald": "nzherald.co.nz",
|
||||||
"Newsweek": "newsweek.com",
|
"Newsweek": "newsweek.com",
|
||||||
|
|
Loading…
Reference in New Issue