Add LeScienze.it

merge-requests/1/head
magnolia1234 4 years ago committed by GitHub
parent 295c0e8471
commit 598772a45e

@ -165,7 +165,8 @@
[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) -

@ -504,6 +504,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) {

@ -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",

Loading…
Cancel
Save