From 1de30a50afcbf7d36f68cfab075c23b5684a1d90 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 2 Apr 2023 20:25:38 +0200 Subject: [PATCH] Add LeGrandContinent.eu --- README.md | 1 + changelog.txt | 1 + contentScript.js | 10 +++++++++- custom/manifest.json | 2 +- manifest.json | 3 ++- sites.js | 4 ++++ sites_updated.json | 6 ++++++ 7 files changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 08f862e..bce2d4d 100644 --- a/README.md +++ b/README.md @@ -459,6 +459,7 @@ Grouped in options:\ [La Tribune](https://www.latribune.fr) - [Le Courrier des Stratèges](https://lecourrierdesstrateges.fr) - [Le Figaro (link to archive.is)](https://www.lefigaro.fr) - +[Le Grand Continent](https://legrandcontinent.eu) - [Le Journal du Dimanche](https://lejdd.fr) - [Le Journal du Net](https://www.journaldunet.com) - [Le Nouvel Economiste](https://www.lenouveleconomiste.fr) - diff --git a/changelog.txt b/changelog.txt index 784568a..1cbae64 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release Post-release Add Epicurious (Conde Nast) +Add LeGrandContinent.eu Add Schwaebische.de Add TagesAnzeiger.ch (link to archive.is) Remove Business Standard (fix obsolete) diff --git a/contentScript.js b/contentScript.js index de7421c..70563fa 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1255,7 +1255,7 @@ else if (matchDomain('politicaexterior.com')) { else csDone = true; -} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'connaissancedesarts.com', 'journaldunet.com', 'la-croix.com', 'ledauphine.com', 'lesinrocks.com', 'lejsl.com', 'lesoir.be', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'science-et-vie.com', 'sudinfo.be'].concat(fr_groupe_nice_matin_domains))) {//france +} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'connaissancedesarts.com', 'journaldunet.com', 'la-croix.com', 'ledauphine.com', 'legrandcontinent.eu', 'lejsl.com', 'lesinrocks.com', 'lesoir.be', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'science-et-vie.com', 'sudinfo.be'].concat(fr_groupe_nice_matin_domains))) {//france if (matchDomain('alternatives-economiques.fr')) { window.setTimeout(function () { @@ -1497,6 +1497,14 @@ else if (matchDomain('lefigaro.fr')) { } } +else if (matchDomain('legrandcontinent.eu')) { + let paywall = document.querySelector('body.paywall, body.pw, body.softwall'); + if (paywall) + paywall.classList.remove('paywall', 'pw', 'softwall'); + let banners = document.querySelectorAll('div#fix-pw, div.disposableBanner') + removeDOMElement(...banners); +} + else if (matchDomain(['lejdd.fr', 'parismatch.com', 'public.fr'])) { let poool_banner = document.querySelector('#poool-container'); let poool_widget = document.querySelector('#poool-widget-content'); diff --git a/custom/manifest.json b/custom/manifest.json index 0074360..7a57dd6 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.1.7" + "version": "3.1.1.8" } diff --git a/manifest.json b/manifest.json index d0aeb0f..35f00f6 100644 --- a/manifest.json +++ b/manifest.json @@ -374,6 +374,7 @@ "*://*.ledauphine.com/*", "*://*.ledevoir.com/*", "*://*.lefigaro.fr/*", + "*://*.legrandcontinent.eu/*", "*://*.lehighvalleylive.com/*", "*://*.leidschdagblad.nl/*", "*://*.lejdd.fr/*", @@ -747,5 +748,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.1.7" + "version": "3.1.1.8" } diff --git a/sites.js b/sites.js index 0ca10b6..a67a744 100644 --- a/sites.js +++ b/sites.js @@ -1123,6 +1123,10 @@ var defaultSites = { domain: "lefigaro.fr", allow_cookies: 1 }, + "Le Grand Continent": { + domain: "legrandcontinent.eu", + allow_cookies: 1 + }, "Le Journal du Dimanche": { domain: "lejdd.fr", allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index 3089c5b..5086de2 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -49,6 +49,12 @@ "add_ext_link_type": "archive.is", "new_site": 1 }, + "Le Grand Continent": { + "domain": "legrandcontinent.eu", + "allow_cookies": 1, + "cs_code": "[{\"cond\":\"body.paywall,body.pw,body.softwall\",\"rm_class\":\"paywall,pw,softwall\"},{\"cond\":\"div#fix-pw,div.disposableBanner\",\"rm_elem\":1}]", + "new_site": 1 + }, "Libelle.nl": { "domain": "libelle.nl", "remove_cookies_select_drop": ["TID_ID"],