Fix LeParisien.fr

merge-requests/18/merge
magnolia1234 5 months ago
parent 4eeef09aa6
commit ae9d5a10b4

@ -6,6 +6,7 @@ Post-release
Add Schwarzwaelder-bote.de
Remove LeMonde.fr (fix obsolete)
Remove Wz.de (fix obsolete)
Fix LeParisien.fr
Fix MediaNews Group (identify sites)
* v3.5.0.0 (2024-01-07)

@ -1865,21 +1865,8 @@ else if (matchDomain(['lejdd.fr', 'parismatch.com', 'public.fr'])) {
}
else if (matchDomain('leparisien.fr')) {
if (window.location.pathname.startsWith('/amp/')) {
let paywall = document.querySelector('div.paywall');
if (paywall) {
let paywall_sticky = document.querySelector('div.paywall-sticky');
removeDOMElement(paywall, paywall_sticky);
let section_hidden = document.querySelectorAll('section[hidden]');
for (let elem of section_hidden)
elem.removeAttribute('hidden');
let mask = document.querySelector('.amp-premium-first-content');
if (mask)
mask.classList.remove('amp-premium-first-content');
}
} else {
amp_redirect('div.paywall', '', '/amp' + window.location.pathname);
}
if (window.location.pathname.startsWith('/amp/'))
ampToHtml();
}
else if (matchDomain('lepoint.fr')) {

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.5.0.2"
"version": "3.5.0.3"
}

@ -826,5 +826,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.5.0.2"
"version": "3.5.0.3"
}

@ -1411,7 +1411,8 @@ var defaultSites = {
},
"Le Parisien": {
domain: "leparisien.fr",
allow_cookies: 1
allow_cookies: 1,
useragent: "googlebot"
},
"Le Point": {
domain: "lepoint.fr",

@ -50,6 +50,12 @@
"cs_code": "[{\"cond\":\"div.single-post-content\", \"rm_attrib\":\"class\"}]",
"upd_version": "3.4.8.5"
},
"Le Parisien": {
"domain": "leparisien.fr",
"allow_cookies": 1,
"useragent": "googlebot",
"upd_version": "3.5.0.3"
},
"Medienholding Süd": {
"domain": "###_de_mhs",
"group": [

Loading…
Cancel
Save