Fix Lequipe.fr (json)
This commit is contained in:
parent
86af984ba5
commit
3f52309c62
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,5 +42,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.6.8.0"
|
||||
"version": "2.6.8.1"
|
||||
}
|
||||
|
@ -95,6 +95,9 @@
|
||||
"domain": "mannheimer-morgen.de",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Marketscreener.com (only free articles)": {
|
||||
"domain": "marketscreener.com"
|
||||
},
|
||||
"Medpagetoday.com": {
|
||||
"domain": "medpagetoday.com"
|
||||
},
|
||||
|
@ -659,5 +659,5 @@
|
||||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.6.8.0"
|
||||
"version": "2.6.8.1"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user