From 927ff482414d48d869d7b0445cad310f2c63ded9 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 2 May 2020 09:16:41 +0200 Subject: [PATCH] Add Le Journal du Net.fr --- README.md | 1 + contentScript.js | 9 +++++++++ lp/manifest.json | 1 + sites.js | 1 + 4 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 46d7348..b208be6 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,7 @@ Install add-on by downloading xpi-file. [L'Opinion](https://www.lopinion.fr) – [La Dépêche](https://www.ladepeche.fr) – [Le Journal du Dimanche](https://lejdd.fr) – +[Le Journal du Net](https://www.journaldunet.com) - [Le Parisien](https://www.leparisien.fr) - [Les Échos](https://www.lesechos.fr) - [Libération](https://www.liberation.fr)* – diff --git a/contentScript.js b/contentScript.js index c052e94..120f4e6 100644 --- a/contentScript.js +++ b/contentScript.js @@ -603,6 +603,15 @@ else if (matchDomain('gestion.pe')) { } } +else if (matchDomain('journaldunet.com')) { + const reg_wall = document.querySelector('.reg_wall'); + removeDOMElement(reg_wall); + const entry_reg_wall = document.querySelector('.entry_reg_wall'); + if (entry_reg_wall) { + entry_reg_wall.removeAttribute('style'); + } +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) { diff --git a/lp/manifest.json b/lp/manifest.json index 9a99b37..6d15eb7 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -134,6 +134,7 @@ "*://*.lecho.be/*", "*://*.ledevoir.com/*", "*://*.lejdd.fr/*", + "*://*.journaldunet.com/*", "*://*.leparisien.fr/*", "*://*.lescienze.it/*", "*://*.lesechos.fr (free articles only)/*", diff --git a/sites.js b/sites.js index 5e89162..2dd7467 100644 --- a/sites.js +++ b/sites.js @@ -70,6 +70,7 @@ var defaultSites = "La Tercera": "latercera.com", "Le Devoir": "ledevoir.com", "Le Journal du Dimanche": "lejdd.fr", + "Le Journal du Net": "journaldunet.com", "Le Parisien": "leparisien.fr", "Le Scienze": "lescienze.it", "Leeuwarder Courant": "lc.nl",