mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:27:48 +01:00
Fix El Pais (redirect on video only)
This commit is contained in:
parent
2e2c85e90c
commit
6cde95d49a
2 changed files with 8 additions and 6 deletions
|
@ -308,7 +308,7 @@ var blockedRegexes = {
|
|||
'elconfidencial.com': /\.tinypass\.com\//,
|
||||
'elespanol.com': /\.eestatic\.com\/assets_js\/web\/v\d\/historia.*\.min\.js/,
|
||||
'elmercurio.com': /\.(elmercurio\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/,
|
||||
'elpais.com': /(\/elpais\.com\/arc\/subs\/p\.min\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js)/,
|
||||
'elpais.com': /(\.epimg\.net\/js\/.+\/(noticia|user)\.min\.js|\/elpais\.com\/arc\/subs\/p\.min\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js)/,
|
||||
'elperiodico.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/,
|
||||
'estadao.com.br': /acesso\.estadao\.com\.br\/paywall\/.+\/.+\.js/,
|
||||
'estrellavalpo.cl': /(\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/,
|
||||
|
|
|
@ -686,7 +686,7 @@ else if (domain = matchDomain(es_unidad_domains)) {
|
|||
|
||||
else if (matchDomain('elpais.com')) {
|
||||
let url = window.location.href;
|
||||
let login_register = document.querySelector('.login_register, #ctn_closed_article');
|
||||
let login_register = document.querySelector('.login_register');
|
||||
if (url.includes('.amp.html') || url.includes('?outputType=amp')) {
|
||||
let preview = document.querySelector('div[amp-access="NOT success"]');
|
||||
let paywall = document.querySelectorAll('div[amp-access="success"][amp-access-hide]');
|
||||
|
@ -697,14 +697,16 @@ else if (matchDomain('elpais.com')) {
|
|||
} else {
|
||||
let counter = document.querySelector('#counterLayerDiv');
|
||||
removeDOMElement(counter);
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (login_register && amphtml) {
|
||||
removeDOMElement(login_register);
|
||||
let video = document.querySelector('div.videoTop')
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if ((login_register || video) && amphtml) {
|
||||
removeDOMElement(login_register, video);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
}
|
||||
let paywall_offer = document.querySelector('.paywallOffer');
|
||||
removeDOMElement(paywall_offer);
|
||||
let ctn_closed_article = document.querySelector('#ctn_closed_article');
|
||||
removeDOMElement(paywall_offer, ctn_closed_article);
|
||||
}
|
||||
|
||||
else if (matchDomain('elperiodico.com')) {
|
||||
|
|
Loading…
Reference in a new issue