mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 07:33:40 +02: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)
|
Add CH Media (opt-in to custom sites for unlisted)
|
||||||
Fix Advance Local (json)
|
Fix Advance Local (json)
|
||||||
Fix Groupe ESH Medias (iframely)
|
Fix Groupe ESH Medias (iframely)
|
||||||
|
Fix Grupo Vocento (limit amp-redirect)
|
||||||
Fix Kurier.at (js & css)
|
Fix Kurier.at (js & css)
|
||||||
Fix Los Angeles Times (images)
|
Fix Los Angeles Times (images)
|
||||||
Fix Nw.de (amp-redirect)
|
Fix Nw.de (amp-redirect)
|
||||||
|
|
|
@ -1598,17 +1598,22 @@ else if (matchDomain('elpais.com')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(es_grupo_vocento_domains)) {
|
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);
|
let paywall = document.querySelector(paywall_sel);
|
||||||
if (!window.location.pathname.endsWith('_amp.html')) {
|
if (!window.location.pathname.endsWith('_amp.html')) {
|
||||||
if (!matchDomain(['eldiariomontanes.es'])) {
|
if (!matchDomain(['eldiariomontanes.es'])) {
|
||||||
amp_redirect(paywall_sel, '', window.location.pathname.replace('.html', '_amp.html'));
|
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);
|
hideDOMElement(...banners);
|
||||||
} else {
|
} else {
|
||||||
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '="result!=\'ALLOW_ACCESS\'"', 'amp-ad, amp-embed, .v-adv');
|
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '="result!=\'ALLOW_ACCESS\'"', 'amp-ad, amp-embed, div.v-adv');
|
||||||
removeDOMElement(paywall);
|
|
||||||
let body_top = document.querySelector('body#top');
|
let body_top = document.querySelector('body#top');
|
||||||
if (body_top)
|
if (body_top)
|
||||||
body_top.removeAttribute('id');
|
body_top.removeAttribute('id');
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
"domain": "airmail.news",
|
"domain": "airmail.news",
|
||||||
"ld_archive_is": "div.paywall-card|div.article-text|div[data-article-target='body']"
|
"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": {
|
"Artsprofessional.co.uk": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"block_regex": "\\.artsprofessional\\.co\\.uk\\/.+\\/js\\/content_paywall\\.js",
|
"block_regex": "\\.artsprofessional\\.co\\.uk\\/.+\\/js\\/content_paywall\\.js",
|
||||||
|
@ -240,6 +245,11 @@
|
||||||
"domain": "flz.de",
|
"domain": "flz.de",
|
||||||
"useragent": "googlebot"
|
"useragent": "googlebot"
|
||||||
},
|
},
|
||||||
|
"Fokus.se": {
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"block_regex": "\\.fokus\\.se\\/app\\/.+\\/sesamy-fpg\\.js",
|
||||||
|
"domain": "fokus.se"
|
||||||
|
},
|
||||||
"Frieze.com": {
|
"Frieze.com": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"block_regex": "js\\.pelcro\\.com",
|
"block_regex": "js\\.pelcro\\.com",
|
||||||
|
|
Loading…
Reference in a new issue