mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:47:47 +01: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
|
Post-release
|
||||||
Add Architectural Digest (Conde Nast)
|
Add Architectural Digest (Conde Nast)
|
||||||
|
Fix ABC.es (mobile)
|
||||||
Fix Knack.be & LeVif.be (subdomains-text)
|
Fix Knack.be & LeVif.be (subdomains-text)
|
||||||
|
|
||||||
* v2.7.4.0 (2022-07-03)
|
* 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
|
} 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')) {
|
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')) {
|
if (window.location.pathname.endsWith('_amp.html')) {
|
||||||
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '', 'amp-ad, amp-embed');
|
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '', 'amp-ad, amp-embed');
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
|
let body_top = document.querySelector('body#top');
|
||||||
|
if (body_top)
|
||||||
|
body_top.removeAttribute('id');
|
||||||
} else {
|
} else {
|
||||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||||
if (paywall && amphtml) {
|
if (paywall && amphtml) {
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
window.location.href = amphtml.href;
|
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/*",
|
"*://*.wsj.net/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://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)": {
|
"Alma Talent (Finland)": {
|
||||||
"domain": "###_fi_alma_talent",
|
"domain": "###_fi_alma_talent",
|
||||||
"group": [
|
"group": [
|
||||||
|
|
Loading…
Reference in a new issue