Add New Scientist
This commit is contained in:
parent
ae94cee155
commit
3dd75a3e9b
@ -77,7 +77,7 @@ For new sites you also have to opt-in to custom sites/request permissions for ne
|
||||
|
||||
### List of supported websites
|
||||
|
||||
_* free/cached articles only._
|
||||
_* free articles only._
|
||||
|
||||
##### World news
|
||||
[Foreign Affairs](https://www.foreignaffairs.com) -
|
||||
@ -147,6 +147,7 @@ Grouped in options:\
|
||||
[MIT Technology Review](https://www.technologyreview.com) -
|
||||
[National Geographic USA](https://www.nationalgeographic.com) -
|
||||
[Nautilus](https://nautil.us) -
|
||||
[New Scientist](https://www.newscientist.com) -
|
||||
[Science](https://www.science.org)* -
|
||||
[Scientific American](https://www.scientificamerican.com) -
|
||||
[Times Higher Education](https://www.timeshighereducation.com) -
|
||||
@ -777,7 +778,7 @@ Grouped in options:\
|
||||
[Grupo Abril](https://grupoabril.com.br) -
|
||||
[O Estado de S. Paulo](https://estadao.com.br) -
|
||||
[O Globo](https://oglobo.globo.com) -
|
||||
[Valor Econômico](https://valor.globo.com)*
|
||||
[Valor Econômico](https://valor.globo.com)
|
||||
|
||||
Grouped in options:\
|
||||
*UOL* sites like\
|
||||
@ -800,7 +801,7 @@ Grouped in options:\
|
||||
[El Comercio](https://elcomercio.pe) -
|
||||
[Gestión](https://gestion.pe)
|
||||
|
||||
_* free/cached articles only._
|
||||
_* free articles only._
|
||||
|
||||
### Sites with limited number of free articles
|
||||
The free article limit can normally be bypassed by removing cookies for the site.
|
||||
|
@ -6,7 +6,7 @@ var ext_name = manifestData.name;
|
||||
var ext_version = manifestData.version;
|
||||
|
||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'nation.africa', 'nationalgeographic.com'].concat(de_westfalen_medien_domains);
|
||||
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains);
|
||||
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains);
|
||||
var currentTabUrl = '';
|
||||
var csDone = false;
|
||||
var optin_setcookie = false;
|
||||
|
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add New Scientist
|
||||
Fix Los Angeles Times & San Diego Union-Tribune
|
||||
Fix The New York Review of Books (timing)
|
||||
|
||||
|
@ -2141,6 +2141,10 @@ else if (matchDomain('prospectmagazine.co.uk')) {
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
|
||||
replaceDomElementExt(url_cache, true, false, 'main');
|
||||
}
|
||||
window.setTimeout(function () {
|
||||
let ads = document.querySelectorAll('.ad-banner, .advert');
|
||||
removeDOMElement(...ads);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
else if (matchDomain('spectator.co.uk')) {
|
||||
@ -3187,6 +3191,22 @@ else if (matchDomain('newrepublic.com')) {
|
||||
removeDOMElement(pw_popups, ...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain('newscientist.com')) {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('#subscription-barrier');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
csDoneOnce = true;
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
|
||||
replaceDomElementExt(url_cache, true, false, 'div.article-body');
|
||||
}
|
||||
window.setTimeout(function () {
|
||||
let lazy_images = document.querySelectorAll('img.lazyload[data-src]:not([src]');
|
||||
for (let elem of lazy_images)
|
||||
elem.src = elem.getAttribute('data-src').split('?')[0] + '?width=800';
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
else if (matchDomain('newsday.com')) {
|
||||
if (window.location.pathname.startsWith('/amp/')) {
|
||||
amp_unhide_access_hide('="AccessLevel = \'Full Content Access\' OR Error = true"', '="AccessLevel = \'Page View Limit\'"');
|
||||
|
@ -43,5 +43,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.8.1.2"
|
||||
"version": "2.8.1.3"
|
||||
}
|
||||
|
4
lib/purify.min.js
vendored
4
lib/purify.min.js
vendored
File diff suppressed because one or more lines are too long
@ -406,6 +406,7 @@
|
||||
"*://*.newcastleherald.com.au/*",
|
||||
"*://*.newleftreview.org/*",
|
||||
"*://*.newrepublic.com/*",
|
||||
"*://*.newscientist.com/*",
|
||||
"*://*.newsday.com/*",
|
||||
"*://*.newsobserver.com/*",
|
||||
"*://*.newstatesman.com/*",
|
||||
@ -685,5 +686,5 @@
|
||||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.8.1.2"
|
||||
"version": "2.8.1.3"
|
||||
}
|
||||
|
8
sites.js
8
sites.js
@ -1252,6 +1252,10 @@ var defaultSites = {
|
||||
allow_cookies: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"New Scientist": {
|
||||
domain: "newscientist.com",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"New York Magazine (+ Curbed, Grub Street, The Cut & Vulture)": {
|
||||
domain: "###_usa_nymag",
|
||||
group: [
|
||||
@ -1290,7 +1294,7 @@ var defaultSites = {
|
||||
allow_cookies: 1,
|
||||
referer: "facebook"
|
||||
},
|
||||
"Nikkei Asian Review": {
|
||||
"Nikkei Asian Review (do not block Piano.io-script externally)": {
|
||||
domain: "asia.nikkei.com",
|
||||
remove_cookies_select_drop: ["xbc"]
|
||||
},
|
||||
@ -1723,7 +1727,7 @@ var defaultSites = {
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.irishtimes\.com\/zephr\/features/
|
||||
},
|
||||
"The Japan Times (recent/last 2 months articles only)": {
|
||||
"The Japan Times (recent/last 2 months articles only; do not block Piano.io-script externally)": {
|
||||
domain: "japantimes.co.jp",
|
||||
block_regex: /cdn\.cxense\.com\//,
|
||||
remove_cookies_select_drop: ["xbc"]
|
||||
|
@ -5,16 +5,6 @@
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js",
|
||||
"amp_redirect": "p.read-txt"
|
||||
},
|
||||
"El Español": {
|
||||
"domain": "elespanol.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js",
|
||||
"cs_code": [{
|
||||
"cond": "div.full-suscriptor-container",
|
||||
"rm_elem": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"La Vie": {
|
||||
"domain": "lavie.fr",
|
||||
"allow_cookies": 1,
|
||||
@ -55,6 +45,12 @@
|
||||
],
|
||||
"new_site": 1
|
||||
},
|
||||
"New Scientist (no images as updated site)": {
|
||||
"domain": "newscientist.com",
|
||||
"allow_cookies": 1,
|
||||
"ld_google_webcache": "#subscription-barrier|div.article-body",
|
||||
"new_site": 1
|
||||
},
|
||||
"San Diego Union Tribune": {
|
||||
"domain": "sandiegouniontribune.com",
|
||||
"block_regex": "(metering\\.platform\\.sandiegouniontribune\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user