mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 03:31:07 +02:00
Fix ABC.es (mobile)
This commit is contained in:
parent
26cdd5d92a
commit
4947b58a38
4 changed files with 23 additions and 2 deletions
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -689,5 +689,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.7.4.2"
|
||||
"version": "2.7.4.3"
|
||||
}
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue