mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:57:48 +01:00
Add Science (free articles only)
This commit is contained in:
parent
ed10aa8d0e
commit
10ea0a5f76
6 changed files with 28 additions and 1 deletions
|
@ -124,6 +124,7 @@ Grouped in options:\
|
||||||
[National Geographic USA](https://www.nationalgeographic.com) -
|
[National Geographic USA](https://www.nationalgeographic.com) -
|
||||||
[Nautilus](https://nautil.us) -
|
[Nautilus](https://nautil.us) -
|
||||||
[Precision Oncology News](https://www.precisiononcologynews.com) -
|
[Precision Oncology News](https://www.precisiononcologynews.com) -
|
||||||
|
[Science](https://www.science.org)* -
|
||||||
[Scientific American](https://www.scientificamerican.com)* -
|
[Scientific American](https://www.scientificamerican.com)* -
|
||||||
[Times Higher Education](https://www.timeshighereducation.com) -
|
[Times Higher Education](https://www.timeshighereducation.com) -
|
||||||
[Towards Data Science](https://www.towardsdatascience.com) -
|
[Towards Data Science](https://www.towardsdatascience.com) -
|
||||||
|
|
|
@ -5,6 +5,7 @@ Post-release
|
||||||
Add Capital Gazette (local USA)
|
Add Capital Gazette (local USA)
|
||||||
Add Groupe Nice-Matin (France)
|
Add Groupe Nice-Matin (France)
|
||||||
Add Il Foglio (Italy)
|
Add Il Foglio (Italy)
|
||||||
|
Add Science (free articles only)
|
||||||
Add The Independent (UK - archive.today for premium)
|
Add The Independent (UK - archive.today for premium)
|
||||||
Fix group Tribune Publishing Company (js)
|
Fix group Tribune Publishing Company (js)
|
||||||
Fix The New Statesman (Evolok)
|
Fix The New Statesman (Evolok)
|
||||||
|
|
|
@ -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.')) {
|
else if (matchDomain('scmp.com') && window.location.href.includes('/amp.')) {
|
||||||
let div_hidden = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]');
|
let div_hidden = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]');
|
||||||
for (let elem of div_hidden)
|
for (let elem of div_hidden)
|
||||||
|
|
|
@ -441,6 +441,7 @@
|
||||||
"*://*.sacbee.com/*",
|
"*://*.sacbee.com/*",
|
||||||
"*://*.sandiegouniontribune.com/*",
|
"*://*.sandiegouniontribune.com/*",
|
||||||
"*://*.science-et-vie.com/*",
|
"*://*.science-et-vie.com/*",
|
||||||
|
"*://*.science.org/*",
|
||||||
"*://*.sciencesetavenir.fr/*",
|
"*://*.sciencesetavenir.fr/*",
|
||||||
"*://*.scientificamerican.com/*",
|
"*://*.scientificamerican.com/*",
|
||||||
"*://*.scmp.com/*",
|
"*://*.scmp.com/*",
|
||||||
|
@ -604,5 +605,5 @@
|
||||||
"*://*.wsj.net/*",
|
"*://*.wsj.net/*",
|
||||||
"*://*.zephr.com/*"
|
"*://*.zephr.com/*"
|
||||||
],
|
],
|
||||||
"version": "2.4.9.5"
|
"version": "2.4.9.6"
|
||||||
}
|
}
|
||||||
|
|
4
sites.js
4
sites.js
|
@ -1288,6 +1288,10 @@ var defaultSites = {
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/
|
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/
|
||||||
},
|
},
|
||||||
|
"Science": {
|
||||||
|
domain: "science.org",
|
||||||
|
allow_cookies: 1
|
||||||
|
},
|
||||||
"Science & Vie": {
|
"Science & Vie": {
|
||||||
domain: "science-et-vie.com",
|
domain: "science-et-vie.com",
|
||||||
block_regex: /\.qiota\.com\//
|
block_regex: /\.qiota\.com\//
|
||||||
|
|
|
@ -38,6 +38,18 @@
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"block_regex": "\\.qiota\\.com\\/"
|
"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": {
|
"The Diplomat": {
|
||||||
"domain": "thediplomat.com",
|
"domain": "thediplomat.com",
|
||||||
"block_regex": "\\/thediplomat\\.com\\/.+\\/js\\/angular-cookies\\.min\\.js",
|
"block_regex": "\\/thediplomat\\.com\\/.+\\/js\\/angular-cookies\\.min\\.js",
|
||||||
|
|
Loading…
Reference in a new issue