From f366b177677a57865cd2c27b2863ded2419939a2 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 18 Aug 2022 08:50:23 +0200 Subject: [PATCH] Fix LaVie.fr --- changelog.txt | 1 + contentScript.js | 8 ++++++++ custom/manifest.json | 2 +- manifest.json | 2 +- sites_updated.json | 13 +++++++++++++ 5 files changed, 24 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 4122840..dce3105 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add Nw.de Add Substack custom domains (opt-in to custom sites) Fix El Correo & La Voz de Cadiz +Fix LaVie.fr * v2.8.0.0 (2022-08-15) Add Gazzetta.it diff --git a/contentScript.js b/contentScript.js index b48112c..8efeadb 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1357,6 +1357,14 @@ else if (matchDomain('lavenir.net')) { removeDOMElement(...ads); } +else if (matchDomain('lavie.fr')) { + let paywall = document.querySelector('div.bloc-payant'); + removeDOMElement(paywall); + let overlay = document.querySelector('div.content-art[style]'); + if (overlay) + overlay.removeAttribute('style'); +} + else if (matchDomain(['lejdd.fr', 'parismatch.com'])) { let poool_banner = document.querySelector('#poool-container'); let forbidden = document.querySelector('.forbidden'); diff --git a/custom/manifest.json b/custom/manifest.json index 5f5da77..14724f8 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -43,5 +43,5 @@ "webRequestBlocking", "" ], - "version": "2.8.0.3" + "version": "2.8.0.4" } diff --git a/manifest.json b/manifest.json index 1ec2b5e..c603c1f 100755 --- a/manifest.json +++ b/manifest.json @@ -688,5 +688,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.8.0.3" + "version": "2.8.0.4" } diff --git a/sites_updated.json b/sites_updated.json index 89f38e3..2c4da20 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -9,6 +9,19 @@ } ] }, + "La Vie": { + "domain": "lavie.fr", + "allow_cookies": 1, + "block_regex": "\\.poool\\.fr\\/", + "cs_code": [{ + "cond": "div.bloc-payant", + "rm_elem": 1 + }, { + "cond": "div.content-art[style]", + "rm_attrib": "style" + } + ] + }, "Neue Westfälische": { "domain": "nw.de", "allow_cookies": 1,