mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:37:47 +01:00
Fix-update El Pais (Spain)
This commit is contained in:
parent
41f0a40534
commit
1d8e3ab1b1
5 changed files with 37 additions and 3 deletions
|
@ -34,6 +34,7 @@ var allow_cookies = [
|
||||||
'dvhn.nl',
|
'dvhn.nl',
|
||||||
'editorialedomani.it',
|
'editorialedomani.it',
|
||||||
'elmercurio.com',
|
'elmercurio.com',
|
||||||
|
'elpais.com',
|
||||||
'mercuriovalpo.cl',
|
'mercuriovalpo.cl',
|
||||||
'eurekareport.com.au',
|
'eurekareport.com.au',
|
||||||
'faz.net',
|
'faz.net',
|
||||||
|
|
|
@ -10,6 +10,7 @@ Add Westfalenpost
|
||||||
Add Westfaelische Rundschau
|
Add Westfaelische Rundschau
|
||||||
Fix-update Australian Financial Review (images)
|
Fix-update Australian Financial Review (images)
|
||||||
Fix-update Domani (Italy)
|
Fix-update Domani (Italy)
|
||||||
|
Fix-update El Pais (Spain)
|
||||||
Fix-update Globe and Mail (FF for Android v68)
|
Fix-update Globe and Mail (FF for Android v68)
|
||||||
Fix-update The Hindu (menu)
|
Fix-update The Hindu (menu)
|
||||||
Fix-update WSJ
|
Fix-update WSJ
|
||||||
|
|
|
@ -1091,7 +1091,7 @@ else if (matchDomain("startribune.com")) {
|
||||||
|
|
||||||
else if (domain = matchDomain("businesstimes.com.sg")) {
|
else if (domain = matchDomain("businesstimes.com.sg")) {
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
let paywall_login = document.querySelector('div.paywall-login');
|
let paywall_login = document.querySelector('div.paywall-login2');
|
||||||
if (paywall_login) {
|
if (paywall_login) {
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
window.location.href = url + '?amp';
|
window.location.href = url + '?amp';
|
||||||
|
@ -1166,6 +1166,38 @@ else if (matchDomain(["haz.de", "lvz.de"])) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 id="bpc"><p>' + par.content + '</p></br></div>', 'text/html');
|
||||||
|
par_text = par_html.querySelector('div#bpc');
|
||||||
|
if (par_text)
|
||||||
|
article_body_par.appendChild(par_text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
removeDOMElement(login_register);
|
||||||
|
}
|
||||||
|
let paywall_offer = document.querySelector('.paywallOffer');
|
||||||
|
removeDOMElement(paywall_offer);
|
||||||
|
}
|
||||||
|
|
||||||
// General Functions
|
// General Functions
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
|
|
|
@ -318,5 +318,5 @@
|
||||||
"webRequest",
|
"webRequest",
|
||||||
"webRequestBlocking"
|
"webRequestBlocking"
|
||||||
],
|
],
|
||||||
"version": "1.8.8.6"
|
"version": "1.8.8.7"
|
||||||
}
|
}
|
|
@ -40,5 +40,5 @@
|
||||||
"webRequest",
|
"webRequest",
|
||||||
"webRequestBlocking"
|
"webRequestBlocking"
|
||||||
],
|
],
|
||||||
"version": "1.8.8.6"
|
"version": "1.8.8.7"
|
||||||
}
|
}
|
Loading…
Reference in a new issue