Fix-update Atlantico.fr

master
magnolia1234 2021-06-16 21:38:56 +02:00
parent 90e7faf1d7
commit ef12ad9d36
4 changed files with 8 additions and 4 deletions

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Remove The Northern Star (obsolete)
Fix-update Atlantico.fr
Fix-update Boston Globe (no opt-in)
Fix-update Foreign Policy
Fix-update The Spectator UK (amp)

View File

@ -729,7 +729,7 @@ if (matchDomain('alternatives-economiques.fr')) {
}
else if (matchDomain('atlantico.fr')) {
let paywall = document.querySelector('div.markup');
let paywall = document.querySelector('div.markup[class*="Paywall"]');
if (paywall)
paywall.setAttribute('class', 'markup');
}
@ -1347,7 +1347,10 @@ else if (matchDomain('telegraaf.nl')) {
removeDOMElement(article_body_old);
let json = document.querySelector('script[type="application/ld+json"][data-react-helmet="true"]');
if (json) {
var json_text = JSON.parse(json.text).articleBody;
let json_text = JSON.parse(json.text).articleBody;
let intro = document.querySelector('span[id^="articleIntro"]');
if (intro)
json_text = json_text.replace(intro.innerText + '\n\n', '');
let article_body = document.querySelector('section.TextArticlePage__bodyText');
if (article_body) {
let div_main = document.createElement('div');

View File

@ -30,5 +30,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.2.5.3"
"version": "2.2.5.4"
}

View File

@ -513,5 +513,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.5.3"
"version": "2.2.5.4"
}