mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:27:48 +01:00
Fix Grupo Vocento (limit amp-redirect)
This commit is contained in:
parent
59a75e56e7
commit
0762675e5f
3 changed files with 20 additions and 4 deletions
|
@ -6,6 +6,7 @@ Post-release
|
|||
Add CH Media (opt-in to custom sites for unlisted)
|
||||
Fix Advance Local (json)
|
||||
Fix Groupe ESH Medias (iframely)
|
||||
Fix Grupo Vocento (limit amp-redirect)
|
||||
Fix Kurier.at (js & css)
|
||||
Fix Los Angeles Times (images)
|
||||
Fix Nw.de (amp-redirect)
|
||||
|
|
|
@ -1598,17 +1598,22 @@ else if (matchDomain('elpais.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain(es_grupo_vocento_domains)) {
|
||||
let paywall_sel = '.voc-paywall, .container-wall-exclusive, .cierre-suscripcion:not([style*="display: none;"])';
|
||||
let paywall_sel = 'div.voc-paywall, div.container-wall-exclusive__content-login';
|
||||
let paywall = document.querySelector(paywall_sel);
|
||||
if (!window.location.pathname.endsWith('_amp.html')) {
|
||||
if (!matchDomain(['eldiariomontanes.es'])) {
|
||||
amp_redirect(paywall_sel, '', window.location.pathname.replace('.html', '_amp.html'));
|
||||
} else {
|
||||
if (paywall) {
|
||||
let url = window.location.href;
|
||||
paywall.before(archiveLink(url));
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
let banners = document.querySelectorAll('.voc-advertising, div.ev-em-modal, span.mega-superior, .v-adv');
|
||||
}
|
||||
let banners = document.querySelectorAll('div.voc-advertising, div.ev-em-modal, span.mega-superior, div.v-adv');
|
||||
hideDOMElement(...banners);
|
||||
} else {
|
||||
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '="result!=\'ALLOW_ACCESS\'"', 'amp-ad, amp-embed, .v-adv');
|
||||
removeDOMElement(paywall);
|
||||
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '="result!=\'ALLOW_ACCESS\'"', 'amp-ad, amp-embed, div.v-adv');
|
||||
let body_top = document.querySelector('body#top');
|
||||
if (body_top)
|
||||
body_top.removeAttribute('id');
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
"domain": "airmail.news",
|
||||
"ld_archive_is": "div.paywall-card|div.article-text|div[data-article-target='body']"
|
||||
},
|
||||
"Aoc.media": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.poool\\.fr",
|
||||
"domain": "aoc.media"
|
||||
},
|
||||
"Artsprofessional.co.uk": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.artsprofessional\\.co\\.uk\\/.+\\/js\\/content_paywall\\.js",
|
||||
|
@ -240,6 +245,11 @@
|
|||
"domain": "flz.de",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Fokus.se": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.fokus\\.se\\/app\\/.+\\/sesamy-fpg\\.js",
|
||||
"domain": "fokus.se"
|
||||
},
|
||||
"Frieze.com": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "js\\.pelcro\\.com",
|
||||
|
|
Loading…
Reference in a new issue