mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Fix Lequipe.fr (json)
This commit is contained in:
parent
a57dbaac8b
commit
8ffce62e97
@ -2,6 +2,7 @@
|
|||||||
Changelog Bypass Paywalls Clean - Firefox
|
Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Fix Lequipe.fr (json)
|
||||||
|
|
||||||
* v2.6.8.0 (2022-05-08)
|
* v2.6.8.0 (2022-05-08)
|
||||||
Add De Tijd & L'Echo
|
Add De Tijd & L'Echo
|
||||||
|
@ -1362,7 +1362,7 @@ else if (matchDomain('lequipe.fr')) {
|
|||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
|
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
|
||||||
}, 500);
|
}, 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);
|
json = JSON.parse(json);
|
||||||
if (json.items) {
|
if (json.items) {
|
||||||
let pars = json.items.filter(x => x.objet && x.objet.paragraphs)[0].objet.paragraphs;
|
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');
|
let intro = document.querySelectorAll('div.o-rte-text > p:not([class]), div.o-rte-text > h3');
|
||||||
for (let elem of intro)
|
for (let elem of intro)
|
||||||
removeDOMElement(elem);
|
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",
|
"domain": "mannheimer-morgen.de",
|
||||||
"useragent": "googlebot"
|
"useragent": "googlebot"
|
||||||
},
|
},
|
||||||
|
"Marketscreener.com (only free articles)": {
|
||||||
|
"domain": "marketscreener.com"
|
||||||
|
},
|
||||||
"Medpagetoday.com": {
|
"Medpagetoday.com": {
|
||||||
"domain": "medpagetoday.com"
|
"domain": "medpagetoday.com"
|
||||||
},
|
},
|
||||||
|
@ -671,5 +671,5 @@
|
|||||||
"*://*.wsj.net/*",
|
"*://*.wsj.net/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "2.6.8.0"
|
"version": "2.6.8.1"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user