Add LeScienze.it

master
magnolia1234 2020-04-04 19:36:19 +02:00 committed by GitHub
parent 014d5a13fc
commit 88273e137a
3 changed files with 15 additions and 1 deletions

View File

@ -190,7 +190,8 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[Corriere Della Sera](https://www.corriere.it) -
[Il Messaggero](https://www.ilmessaggero.it) -
[La Repubblica](https://www.repubblica.it) -
[La Stampa](https://www.lastampa.it)
[La Stampa](https://www.lastampa.it) -
[Le Scienze](https://www.lescienze.it)
##### Netherlands/Flanders
[Algemeen Dagblad](https://www.ad.nl) and regional ADR sites like
[BN DeStem](https://www.bndestem.nl) -

View File

@ -490,6 +490,18 @@ else if (window.location.href.indexOf("barrons.com") !== -1) {
}
}
else if (matchDomain('lescienze.it')) {
const paywall = document.querySelector('.paywall-adagio');
const body_paywall = document.getElementById('detail-body-paywall');
const shade = document.querySelector('.shade');
removeDOMElement(paywall, body_paywall, shade);
const hidden_body = document.querySelectorAll('.detail_body');
for (let i = 0; i < hidden_body.length; i++) {
hidden_body[i].removeAttribute('hidden');
hidden_body[i].setAttribute('style', 'display:block; max-height:auto; overflow:visible');
}
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -69,6 +69,7 @@ var defaultSites =
"Le Journal du Dimanche": "lejdd.fr",
"Le Monde": "lemonde.fr",
"Le Parisien": "leparisien.fr",
"Le Scienze": "lescienze.it",
"Leeuwarder Courant": "lc.nl",
"Les Échos (free articles only)": "lesechos.fr",
"Libération (free articles only)": "liberation.fr",