From 73ccdf5fc4922d93d79d517df1dd45c37d7a2cd3 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 3 Nov 2022 08:10:48 +0100 Subject: [PATCH] Fix Mediapart.fr (en/es) --- README.md | 2 +- contentScript.js | 4 ++-- manifest.json | 2 +- sites_updated.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3a38c062..a982c282 100644 --- a/README.md +++ b/README.md @@ -452,7 +452,7 @@ Grouped in options:\ [Les Échos](https://www.lesechos.fr) - [Les Inrockuptibles](https://www.lesinrocks.com) - [Marianne](https://www.marianne.net) - -[Mediapart](https://www.mediapart.fr) - +[Mediapart (fr/en/es)](https://www.mediapart.fr) - [Paris Match](https://www.parismatch.com) - [Philonomist (fr/en)](https://www.philonomist.com) - [Science & Vie](https://www.science-et-vie.com) - diff --git a/contentScript.js b/contentScript.js index 52afd081..af3e82b6 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1549,12 +1549,12 @@ else if (matchDomain('marianne.net')) { else if (matchDomain('mediapart.fr')) { let url = window.location.href; - let paywall = document.querySelector('div[id^="paywall_"]'); + let paywall = document.querySelector('div[id^="paywall_"], div.offre-basique'); if (paywall) { removeDOMElement(paywall); csDoneOnce = true; let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'div.paywall-restricted-content'); + replaceDomElementExt(url_cache, true, false, 'div.paywall-restricted-content, div.content-article'); } } diff --git a/manifest.json b/manifest.json index 6b8a8193..99371cbc 100644 --- a/manifest.json +++ b/manifest.json @@ -730,5 +730,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.9.1.3" + "version": "2.9.1.4" } diff --git a/sites_updated.json b/sites_updated.json index c23e3c99..215df09f 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -7,7 +7,7 @@ "Mediapart.fr": { "domain": "mediapart.fr", "allow_cookies": 1, - "ld_google_webcache": "div[id^=\"paywall_\"]|div.paywall-restricted-content", + "ld_google_webcache": "div[id^=\"paywall_\"], div.offre-basique|div.paywall-restricted-content, div.content-article", "new_site": 1 }, "Outdoor Life": {