Fix Mediapart.fr (en/es)

merge-requests/10/head
magnolia1234 2 years ago
parent 196ba07745
commit 73ccdf5fc4

@ -452,7 +452,7 @@ Grouped in options:\
[Les Échos](https://www.lesechos.fr) - [Les Échos](https://www.lesechos.fr) -
[Les Inrockuptibles](https://www.lesinrocks.com) - [Les Inrockuptibles](https://www.lesinrocks.com) -
[Marianne](https://www.marianne.net) - [Marianne](https://www.marianne.net) -
[Mediapart](https://www.mediapart.fr) - [Mediapart (fr/en/es)](https://www.mediapart.fr) -
[Paris Match](https://www.parismatch.com) - [Paris Match](https://www.parismatch.com) -
[Philonomist (fr/en)](https://www.philonomist.com) - [Philonomist (fr/en)](https://www.philonomist.com) -
[Science & Vie](https://www.science-et-vie.com) - [Science & Vie](https://www.science-et-vie.com) -

@ -1549,12 +1549,12 @@ else if (matchDomain('marianne.net')) {
else if (matchDomain('mediapart.fr')) { else if (matchDomain('mediapart.fr')) {
let url = window.location.href; let url = window.location.href;
let paywall = document.querySelector('div[id^="paywall_"]'); let paywall = document.querySelector('div[id^="paywall_"], div.offre-basique');
if (paywall) { if (paywall) {
removeDOMElement(paywall); removeDOMElement(paywall);
csDoneOnce = true; csDoneOnce = true;
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; 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');
} }
} }

@ -730,5 +730,5 @@
"*://gcm.omerlocdn.com/*", "*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "2.9.1.3" "version": "2.9.1.4"
} }

@ -7,7 +7,7 @@
"Mediapart.fr": { "Mediapart.fr": {
"domain": "mediapart.fr", "domain": "mediapart.fr",
"allow_cookies": 1, "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 "new_site": 1
}, },
"Outdoor Life": { "Outdoor Life": {

Loading…
Cancel
Save