Fix-update El Pais (Spain)

This commit is contained in:
magnolia1234 2020-12-10 21:11:58 +01:00
parent c6789b274a
commit 03e4434449
4 changed files with 3 additions and 34 deletions

View file

@ -194,7 +194,7 @@ var blockedRegexes = {
'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/, 'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/,
'elmercurio.com': /\.(elmercurio\.com|emol\.cl)\/.+\/js\/((vendor\/)?modal|merPramV\d|PramModal\.min)\.js/, 'elmercurio.com': /\.(elmercurio\.com|emol\.cl)\/.+\/js\/((vendor\/)?modal|merPramV\d|PramModal\.min)\.js/,
'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/, 'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/, 'elpais.com': /\.cdn\.arcpublishing\.com\/arc\/subs\/p\.min\.js/,
'elperiodico.com': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/, 'elperiodico.com': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/,
'estadao.com.br': /acesso\.estadao\.com\.br\/paywall\/.+\/pw\.js/, 'estadao.com.br': /acesso\.estadao\.com\.br\/paywall\/.+\/pw\.js/,
'estrellavalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/, 'estrellavalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/,

View file

@ -8,6 +8,7 @@ Add Groupe La Dépêche (France)
Add Madsack Mediengruppe (Germany) Add Madsack Mediengruppe (Germany)
Fix-update Australian Financial Review (images) Fix-update Australian Financial Review (images)
Fix-update Bloomberg (inline articles/adblocker) Fix-update Bloomberg (inline articles/adblocker)
Fix-update El Pais (Spain)
Fix-update Funke Medien (obfuscated) Fix-update Funke Medien (obfuscated)
Update grouped sites (popup-toggle) Update grouped sites (popup-toggle)

View file

@ -1431,38 +1431,6 @@ else if (matchDomain(de_madsack_domains)) {
} }
} }
else if (matchDomain("elpais.com")) {
let login_register = document.querySelector('.login_register');
if (login_register) {
let scripts = document.querySelectorAll('script');
let json_script;
for (let script of scripts) {
if (script.innerText.includes('Fusion.globalContent'))
json_script = script;
continue;
}
if (json_script) {
let json_text = json_script.innerHTML.split('Fusion.globalContent=')[1].split(';Fusion.globalContentConfig')[0];
let json_article = JSON.parse(json_text).content_elements;
let article_body_par = document.querySelector('div.article_body > p');
if (article_body_par) {
article_body_par.innerText = '';
let parser = new DOMParser();
let par_text, par_html;
for (let par of json_article) {
par_html = parser.parseFromString('<div><p>' + par.content + '</p></br></div>', 'text/html');
par_text = par_html.querySelector('div');
if (par_text)
article_body_par.appendChild(par_text);
}
}
}
removeDOMElement(login_register);
}
let paywall_offer = document.querySelector('.paywallOffer');
removeDOMElement(paywall_offer);
}
else if (matchDomain("slate.com")) { else if (matchDomain("slate.com")) {
let slate_roadblock = document.querySelector('.slate-roadblock'); let slate_roadblock = document.querySelector('.slate-roadblock');
let ads = document.querySelectorAll('section[class*="-ad"]'); let ads = document.querySelectorAll('section[class*="-ad"]');

View file

@ -391,10 +391,10 @@
"*://*.adobedtm.com/*", "*://*.adobedtm.com/*",
"*://*.apnarm.net.au/*", "*://*.apnarm.net.au/*",
"*://*.bwbx.io/*", "*://*.bwbx.io/*",
"*://*.cdn.arcpublishing.com/*",
"*://*.cedsdigital.it/*", "*://*.cedsdigital.it/*",
"*://*.corriereobjects.it/*", "*://*.corriereobjects.it/*",
"*://*.emol.cl/*", "*://*.emol.cl/*",
"*://*.epimg.net/*",
"*://*.flip-pay.com/*", "*://*.flip-pay.com/*",
"*://*.ffx.io/*", "*://*.ffx.io/*",
"*://*.htmedia.in/*", "*://*.htmedia.in/*",