mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:57:48 +01:00
Fix-update El Pais (Spain)
This commit is contained in:
parent
c6789b274a
commit
03e4434449
4 changed files with 3 additions and 34 deletions
|
@ -194,7 +194,7 @@ var blockedRegexes = {
|
|||
'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.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/,
|
||||
'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/,
|
||||
'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\?)/,
|
||||
|
|
|
@ -8,6 +8,7 @@ Add Groupe La Dépêche (France)
|
|||
Add Madsack Mediengruppe (Germany)
|
||||
Fix-update Australian Financial Review (images)
|
||||
Fix-update Bloomberg (inline articles/adblocker)
|
||||
Fix-update El Pais (Spain)
|
||||
Fix-update Funke Medien (obfuscated)
|
||||
Update grouped sites (popup-toggle)
|
||||
|
||||
|
|
|
@ -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")) {
|
||||
let slate_roadblock = document.querySelector('.slate-roadblock');
|
||||
let ads = document.querySelectorAll('section[class*="-ad"]');
|
||||
|
|
|
@ -391,10 +391,10 @@
|
|||
"*://*.adobedtm.com/*",
|
||||
"*://*.apnarm.net.au/*",
|
||||
"*://*.bwbx.io/*",
|
||||
"*://*.cdn.arcpublishing.com/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.emol.cl/*",
|
||||
"*://*.epimg.net/*",
|
||||
"*://*.flip-pay.com/*",
|
||||
"*://*.ffx.io/*",
|
||||
"*://*.htmedia.in/*",
|
||||
|
|
Loading…
Reference in a new issue