From a465fe37cbfcc07af23eec792ea956cdea085555 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 22 Apr 2020 22:59:29 +0200 Subject: [PATCH] Remove LeMonde.fr (obsolete) --- README.md | 1 - background.js | 2 -- contentScript.js | 18 ------------------ sites.js | 1 - 4 files changed, 22 deletions(-) diff --git a/README.md b/README.md index 8bb114d..e49a42d 100755 --- a/README.md +++ b/README.md @@ -190,7 +190,6 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f [L'Opinion](https://www.lopinion.fr) – [La Dépêche](https://www.ladepeche.fr) – [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)* - [Libération](https://www.liberation.fr)* – diff --git a/background.js b/background.js index 6e332c9..49aa795 100755 --- a/background.js +++ b/background.js @@ -40,7 +40,6 @@ var allow_cookies = [ 'humo.be', 'intelligentinvestor.com.au', 'kleinezeitung.at', -'lemonde.fr', 'lc.nl', 'lrb.co.uk', 'mexiconewsdaily.com', @@ -118,7 +117,6 @@ const use_google_bot_default = [ 'handelsblatt.com', 'heraldsun.com.au', 'intelligentinvestor.com.au', -'lemonde.fr', 'mexiconewsdaily.com', 'ntnews.com.au', 'quora.com', diff --git a/contentScript.js b/contentScript.js index c3e22ab..86ccf21 100755 --- a/contentScript.js +++ b/contentScript.js @@ -200,24 +200,6 @@ else if (matchDomain("medium.com")) { if (DOMElementsToTextDiv[2]) removeDOMElement(DOMElementsToTextDiv[2]); } -else if (matchDomain('lemonde.fr')) { - document.addEventListener('DOMContentLoaded', () => { - const hidden_section = document.querySelector('.article__content--restricted-media'); - if (hidden_section) - hidden_section.classList.remove('article__content--restricted-media'); - const longform_article_restricted = document.querySelector('.article__content--restricted'); - if (longform_article_restricted) - longform_article_restricted.classList.remove('article__content--restricted'); - const longform_paywall = document.querySelector('.paywall--longform'); - if (longform_paywall) - longform_paywall.classList.remove('paywall--longform'); - const paywall = document.getElementById('js-paywall-content'); - const friend_paywall = document.querySelector('.friend--paywall'); - const cookie_banner = document.getElementById('cookie-banner'); - removeDOMElement(paywall, friend_paywall, cookie_banner); - }); -} - else if (matchDomain("ledevoir.com")) { const counter = document.querySelector('.popup-msg'); removeDOMElement(counter); diff --git a/sites.js b/sites.js index bf9171a..beb60e9 100644 --- a/sites.js +++ b/sites.js @@ -69,7 +69,6 @@ var defaultSites = "La Tercera": "latercera.com", "Le Devoir": "ledevoir.com", "Le Journal du Dimanche": "lejdd.fr", - "Le Monde": "lemonde.fr", "Le Parisien": "leparisien.fr", "Le Scienze": "lescienze.it", "Leeuwarder Courant": "lc.nl",