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 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) -

@ -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');
}
}

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

@ -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": {

Loading…
Cancel
Save