Fix ABC.es (amp)

This commit is contained in:
magnolia1234 2021-12-09 21:32:27 +01:00
parent efb2cc97a0
commit 3adcc0e4fd
3 changed files with 11 additions and 2 deletions

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Add Koelner Stadt-Anzeiger & Koelnische Rundschau Add Koelner Stadt-Anzeiger & Koelnische Rundschau
Add The (New Orleans) Advocate Add The (New Orleans) Advocate
Fix ABC.es (amp)
Fix Funke Mediengruppe (amp) Fix Funke Mediengruppe (amp)
Fix Lecho.be (separate from Groupe Rossel) Fix Lecho.be (separate from Groupe Rossel)
Fix Repubblica sites (no amp) Fix Repubblica sites (no amp)

View file

@ -648,7 +648,15 @@ else
} else if (window.location.hostname.match(/\.(es|pt)$/) || matchDomain(['diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicomediterraneo.com', 'expansion.com', 'larioja.com', 'lavanguardia.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal } else if (window.location.hostname.match(/\.(es|pt)$/) || matchDomain(['diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicomediterraneo.com', 'expansion.com', 'larioja.com', 'lavanguardia.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal
if (matchDomain('cmjornal.pt')) { if (matchDomain('abc.es')) {
if (window.location.pathname.endsWith('_amp.html')) {
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '', 'amp-ad, amp-embed');
premium_banner = document.querySelector('.cierre-suscripcion');
removeDOMElement(premium_banner);
}
}
else if (matchDomain('cmjornal.pt')) {
let paywall = document.querySelector('.bloqueio_exclusivos'); let paywall = document.querySelector('.bloqueio_exclusivos');
let amphtml = document.querySelector('link[rel="amphtml"]'); let amphtml = document.querySelector('link[rel="amphtml"]');
let url = window.location.href; let url = window.location.href;

View file

@ -11,7 +11,7 @@ var defaultSites = {
"ABC.es": { "ABC.es": {
domain: "abc.es", domain: "abc.es",
allow_cookies: 1, allow_cookies: 1,
block_regex: /\.evolok\.net\//, block_regex: /(\.evolok\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js)/,
useragent: "googlebot" useragent: "googlebot"
}, },
"Advance Local": { "Advance Local": {