Fix LesEchos.fr (hide ads instead of removing)

Header sections weren't working or error-message.
Plus new premium-articles have hard paywall.
This commit is contained in:
magnolia1234 2020-02-22 18:11:50 +01:00 committed by GitHub
parent 3a2d567b72
commit 662a7347ce
3 changed files with 5 additions and 5 deletions

View file

@ -146,7 +146,7 @@
[Le Journal du Dimanche](https://lejdd.fr) [Le Journal du Dimanche](https://lejdd.fr)
[Le Monde](https://www.lemonde.fr) - [Le Monde](https://www.lemonde.fr) -
[Le Parisien](https://www.leparisien.fr) - [Le Parisien](https://www.leparisien.fr) -
[Les Échos](https://www.lesechos.fr) - [Les Échos](https://www.lesechos.fr)* -
[Libération](https://www.liberation.fr)* [Libération](https://www.liberation.fr)*
[Valeurs Actuelles](https://www.valeursactuelles.com) [Valeurs Actuelles](https://www.valeursactuelles.com)
##### Germany/Austria ##### Germany/Austria

View file

@ -401,7 +401,7 @@ if (window.location.href.indexOf("cen.acs.org") !== -1) {
if (window.location.href.indexOf("lesechos.fr") !== -1) { if (window.location.href.indexOf("lesechos.fr") !== -1) {
const ad_block = document.querySelectorAll('.jzxvkd-1'); const ad_block = document.querySelectorAll('.jzxvkd-1');
for (let i = 0; i < ad_block.length; i++) { for (let i = 0; i < ad_block.length; i++) {
ad_block[i].remove(); ad_block[i].setAttribute('style', 'display:none');
} }
} }

View file

@ -63,7 +63,7 @@
"Le Monde": "lemonde.fr", "Le Monde": "lemonde.fr",
"Le Parisien": "leparisien.fr", "Le Parisien": "leparisien.fr",
"Leeuwarder Courant": "lc.nl", "Leeuwarder Courant": "lc.nl",
"Les Échos": "lesechos.fr", "Les Échos": "lesechos.fr (free articles only)",
"Libération (free articles only)": "liberation.fr", "Libération (free articles only)": "liberation.fr",
"Loeb Classical Library": "loebclassics.com", "Loeb Classical Library": "loebclassics.com",
"London Review of Books": "lrb.co.uk", "London Review of Books": "lrb.co.uk",