diff --git a/README.md b/README.md index 1bf3fd7..1801bcb 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ [Le Journal du Dimanche](https://lejdd.fr) – [Le Monde](https://www.lemonde.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)* – [Valeurs Actuelles](https://www.valeursactuelles.com) ##### Germany/Austria diff --git a/contentScript.js b/contentScript.js index 16fb50a..ab92f34 100644 --- a/contentScript.js +++ b/contentScript.js @@ -9,7 +9,7 @@ if (!localstorage_hold){ // Content workarounds/domain if (location.hostname.endsWith('rep.repubblica.it')) { - if (location.href.includes('/pwa/')) { + if (location.href.includes('/pwa/')) { location.href = location.href.replace('/pwa/', '/ws/detail/'); } if (location.href.includes('/ws/detail/')) { @@ -400,8 +400,8 @@ if (window.location.href.indexOf("cen.acs.org") !== -1) { if (window.location.href.indexOf("lesechos.fr") !== -1) { const ad_block = document.querySelectorAll('.jzxvkd-1'); - for (let i=0; i < ad_block.length; i++) { - ad_block[i].remove(); + for (let i = 0; i < ad_block.length; i++) { + ad_block[i].setAttribute('style', 'display:none'); } } diff --git a/sites.json b/sites.json index dc9b0b9..96e78bb 100644 --- a/sites.json +++ b/sites.json @@ -63,7 +63,7 @@ "Le Monde": "lemonde.fr", "Le Parisien": "leparisien.fr", "Leeuwarder Courant": "lc.nl", - "Les Échos": "lesechos.fr", + "Les Échos": "lesechos.fr (free articles only)", "Libération (free articles only)": "liberation.fr", "Loeb Classical Library": "loebclassics.com", "London Review of Books": "lrb.co.uk",