Add Science (free articles only)

This commit is contained in:
magnolia1234 2022-01-02 19:21:05 +01:00
parent ed10aa8d0e
commit 10ea0a5f76
6 changed files with 28 additions and 1 deletions

View file

@ -124,6 +124,7 @@ Grouped in options:\
[National Geographic USA](https://www.nationalgeographic.com) -
[Nautilus](https://nautil.us) -
[Precision Oncology News](https://www.precisiononcologynews.com) -
[Science](https://www.science.org)* -
[Scientific American](https://www.scientificamerican.com)* -
[Times Higher Education](https://www.timeshighereducation.com) -
[Towards Data Science](https://www.towardsdatascience.com) -

View file

@ -5,6 +5,7 @@ Post-release
Add Capital Gazette (local USA)
Add Groupe Nice-Matin (France)
Add Il Foglio (Italy)
Add Science (free articles only)
Add The Independent (UK - archive.today for premium)
Fix group Tribune Publishing Company (js)
Fix The New Statesman (Evolok)

View file

@ -2743,6 +2743,14 @@ else if (matchDomain('qz.com')) {
}
}
else if (matchDomain('science.org')) {
let paywall = document.querySelector('div.alert-read-limit');
removeDOMElement(paywall);
let overlay = document.querySelector('body.alert-read-limit__overlay');
if (overlay)
overlay.classList.remove('alert-read-limit__overlay');
}
else if (matchDomain('scmp.com') && window.location.href.includes('/amp.')) {
let div_hidden = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]');
for (let elem of div_hidden)

View file

@ -441,6 +441,7 @@
"*://*.sacbee.com/*",
"*://*.sandiegouniontribune.com/*",
"*://*.science-et-vie.com/*",
"*://*.science.org/*",
"*://*.sciencesetavenir.fr/*",
"*://*.scientificamerican.com/*",
"*://*.scmp.com/*",
@ -604,5 +605,5 @@
"*://*.wsj.net/*",
"*://*.zephr.com/*"
],
"version": "2.4.9.5"
"version": "2.4.9.6"
}

View file

@ -1288,6 +1288,10 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/
},
"Science": {
domain: "science.org",
allow_cookies: 1
},
"Science & Vie": {
domain: "science-et-vie.com",
block_regex: /\.qiota\.com\//

View file

@ -38,6 +38,18 @@
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com\\/"
},
"Science": {
"domain": "science.org",
"allow_cookies": 1,
"cs_code": [{
"cond": "div.alert-read-limit",
"rm_elem": 1
}, {
"cond": "body.alert-read-limit__overlay",
"rm_attrib": "class"
}
]
},
"The Diplomat": {
"domain": "thediplomat.com",
"block_regex": "\\/thediplomat\\.com\\/.+\\/js\\/angular-cookies\\.min\\.js",