Fix Grupo Vocento (Spain)

This commit is contained in:
magnolia1234 2021-07-30 09:14:26 +02:00
parent aa2109a004
commit 02c8a7c23b
2 changed files with 3 additions and 2 deletions

View file

@ -6,6 +6,7 @@ Grouping Quotidiano.net sites (Italy)
Remove Le Un (obsolete)
Fix Commentary Magazine (new domain)
Fix Gestion & El Comercio (Peru)
Fix Grupo Vocento (Spain)
Fix Financial News (London)
Update remove cookies (faster)

View file

@ -687,11 +687,11 @@ else if (matchDomain('elperiodico.com')) {
else if (matchDomain(es_grupo_vocento_domains)) {
let url = window.location.href;
let content_exclusive_bg = document.querySelector('.content-exclusive-bg, #cierre_suscripcion');
let content_exclusive_bg = document.querySelector('.content-exclusive-bg, #cierre_suscripcion, ev-engagement[group-name^="paywall-"]');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (content_exclusive_bg && amphtml) {
removeDOMElement(content_exclusive_bg);
window.location.href = url.replace('.html', '_amp.html');
window.location.href = url.split('?')[0].replace('.html', '_amp.html');
} else if (url.includes('_amp.html')) {
let voc_advers = document.querySelectorAll('.voc-adver, amp-embed');
removeDOMElement(...voc_advers);