Fix ABC.es (mobile)

master
magnolia1234 2022-07-05 21:36:06 +02:00
parent 54a8e4a06f
commit 6634b1fbbd
5 changed files with 24 additions and 3 deletions

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Add Architectural Digest (Conde Nast)
Fix ABC.es (mobile)
Fix Knack.be & LeVif.be (subdomains-text)
* v2.7.4.0 (2022-07-03)

View File

@ -999,15 +999,21 @@ else
} else if (window.location.hostname.match(/\.(es|pt|cat)$/) || matchDomain(['diariocordoba.com', 'diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info', 'expansion.com', 'larioja.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal
if (matchDomain('abc.es')) {
let paywall = document.querySelector('.cierre-suscripcion:not([style="display: none;"])');
let paywall = document.querySelector('div.voc-paywall');
if (window.location.pathname.endsWith('_amp.html')) {
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '', 'amp-ad, amp-embed');
removeDOMElement(paywall);
let body_top = document.querySelector('body#top');
if (body_top)
body_top.removeAttribute('id');
} else {
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
} else {
let banners = document.querySelectorAll('div.ev-em-modal, span.mega-superior');
removeDOMElement(...banners);
}
}
}

View File

@ -43,5 +43,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.7.4.2"
"version": "2.7.4.3"
}

View File

@ -677,5 +677,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.4.2"
"version": "2.7.4.3"
}

View File

@ -1,4 +1,18 @@
{
"ABC.es": {
"domain": "abc.es",
"allow_cookies": 1,
"block_regex": "(\\.evolok\\.net\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
"useragent": "googlebot",
"amp_redirect": {
"paywall": "div.voc-paywall"
},
"cs_code": [{
"cond": "body#top",
"rm_attrib": "id"
}
]
},
"Alma Talent (Finland)": {
"domain": "###_fi_alma_talent",
"group": [