mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-12 01:10:24 +00:00
Fix Groupe LaDepeche.fr (text)
This commit is contained in:
parent
d16421dea7
commit
8d6f6203bf
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Fix Groupe LaDepeche.fr (text)
|
||||
|
||||
* v3.0.2.0 (2023-01-22)
|
||||
Add AerzteBlatt.de
|
||||
|
@ -1349,9 +1349,28 @@ else if (matchDomain(fr_groupe_la_depeche_domains)) {
|
||||
} else {
|
||||
let paywall = document.querySelector('div.paywall');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
if (amphtml)
|
||||
window.location.href = amphtml.href;
|
||||
else {
|
||||
let json_script = getArticleJsonScript();
|
||||
if (json_script) {
|
||||
let json = JSON.parse(json_script.text);
|
||||
if (json) {
|
||||
let json_text = parseHtmlEntities(json.articleBody);
|
||||
let content = document.querySelector('div.article-full__body-content');
|
||||
if (json_text && content) {
|
||||
content.innerHTML = '';
|
||||
let article_new = document.createElement('p');
|
||||
article_new.innerText = json_text;
|
||||
content.appendChild(article_new);
|
||||
content.removeAttribute('style');
|
||||
content.removeAttribute('data-state');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -729,5 +729,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.0.2.0"
|
||||
"version": "3.0.2.1"
|
||||
}
|
||||
|
2
sites.js
2
sites.js
@ -720,7 +720,7 @@ var defaultSites = {
|
||||
"petitbleu.fr"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
|
||||
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
|
||||
},
|
||||
"Groupe Nice-Matin": {
|
||||
domain: "###_fr_groupe_nice_matin",
|
||||
|
@ -4,6 +4,22 @@
|
||||
"allow_cookies": 1,
|
||||
"ld_google_webcache": "div#inc42_article_content_lock|div.content-wrapper,section[amp-access='status']"
|
||||
},
|
||||
"Groupe La Dépêche": {
|
||||
"domain": "###_fr_groupe_la_depeche",
|
||||
"group": [
|
||||
"centrepresseaveyron.fr",
|
||||
"ladepeche.fr",
|
||||
"lindependant.fr",
|
||||
"midi-olympique.fr",
|
||||
"midilibre.fr",
|
||||
"nrpyrenees.fr",
|
||||
"petitbleu.fr"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js",
|
||||
"ld_json": "div.paywall|div.article-full__body-content",
|
||||
"cs_code": "[{\"cond\":\"div.article-full__body-content\",\"rm_attrib\":\"style|data-state\"}]"
|
||||
},
|
||||
"Vogue Business": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "voguebusiness.com",
|
||||
|
Loading…
Reference in New Issue
Block a user