mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Fix Lequipe.fr (json)
This commit is contained in:
parent
a57dbaac8b
commit
8ffce62e97
4 changed files with 9 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Fix Lequipe.fr (json)
|
||||
|
||||
* v2.6.8.0 (2022-05-08)
|
||||
Add De Tijd & L'Echo
|
||||
|
|
|
@ -1362,7 +1362,7 @@ else if (matchDomain('lequipe.fr')) {
|
|||
window.setTimeout(function () {
|
||||
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
|
||||
}, 500);
|
||||
json = json.replace(/keywords:\[([\w\,\$]+)\]/g, "keywords:\"\"").replace(/([{,])([a-zA-Z_]+\d?):/g, "$1\"$2\":").replace(/\":(\[)?([\w\$\.]+)([\]},])/g, "\":$1\"$2\"$3").replace(/},([\w]+),{/g, "},\"$1\",{");
|
||||
json = json.replace(/keywords:\[([\w\,\$]+)\]/g, "keywords:\"\"").replace(/([{,])([a-zA-Z_]+\d?):/g, "$1\"$2\":").replace(/\":(\[)?([\w\$\.]+)([\]},])/g, "\":$1\"$2\"$3").replace(/},([\w]+),{/g, "},\"$1\",{").replace(/},(\w{2})\]}/g, "},\"$1\"]}");
|
||||
json = JSON.parse(json);
|
||||
if (json.items) {
|
||||
let pars = json.items.filter(x => x.objet && x.objet.paragraphs)[0].objet.paragraphs;
|
||||
|
@ -2622,6 +2622,9 @@ else if (matchDomain('enotes.com')) {
|
|||
let intro = document.querySelectorAll('div.o-rte-text > p:not([class]), div.o-rte-text > h3');
|
||||
for (let elem of intro)
|
||||
removeDOMElement(elem);
|
||||
let section_words = pageContains('p[class="u-align--center"]', /\(The entire section contains/);
|
||||
let ads = document.querySelectorAll('.ad-hfu');
|
||||
removeDOMElement(...section_words, ...ads);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,6 +95,9 @@
|
|||
"domain": "mannheimer-morgen.de",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Marketscreener.com (only free articles)": {
|
||||
"domain": "marketscreener.com"
|
||||
},
|
||||
"Medpagetoday.com": {
|
||||
"domain": "medpagetoday.com"
|
||||
},
|
||||
|
|
|
@ -671,5 +671,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.6.8.0"
|
||||
"version": "2.6.8.1"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue