mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 08:27:48 +01:00
Fix ABC.es (amp)
This commit is contained in:
parent
efb2cc97a0
commit
3adcc0e4fd
3 changed files with 11 additions and 2 deletions
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Post-release
|
||||
Add Koelner Stadt-Anzeiger & Koelnische Rundschau
|
||||
Add The (New Orleans) Advocate
|
||||
Fix ABC.es (amp)
|
||||
Fix Funke Mediengruppe (amp)
|
||||
Fix Lecho.be (separate from Groupe Rossel)
|
||||
Fix Repubblica sites (no amp)
|
||||
|
|
|
@ -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
|
||||
|
||||
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 amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
let url = window.location.href;
|
||||
|
|
2
sites.js
2
sites.js
|
@ -11,7 +11,7 @@ var defaultSites = {
|
|||
"ABC.es": {
|
||||
domain: "abc.es",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.evolok\.net\//,
|
||||
block_regex: /(\.evolok\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js)/,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"Advance Local": {
|
||||
|
|
Loading…
Reference in a new issue