mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:47:47 +01:00
Fix Grupo Vocento (Spain)
This commit is contained in:
parent
aa2109a004
commit
02c8a7c23b
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ Grouping Quotidiano.net sites (Italy)
|
||||||
Remove Le Un (obsolete)
|
Remove Le Un (obsolete)
|
||||||
Fix Commentary Magazine (new domain)
|
Fix Commentary Magazine (new domain)
|
||||||
Fix Gestion & El Comercio (Peru)
|
Fix Gestion & El Comercio (Peru)
|
||||||
|
Fix Grupo Vocento (Spain)
|
||||||
Fix Financial News (London)
|
Fix Financial News (London)
|
||||||
Update remove cookies (faster)
|
Update remove cookies (faster)
|
||||||
|
|
||||||
|
|
|
@ -687,11 +687,11 @@ else if (matchDomain('elperiodico.com')) {
|
||||||
|
|
||||||
else if (matchDomain(es_grupo_vocento_domains)) {
|
else if (matchDomain(es_grupo_vocento_domains)) {
|
||||||
let url = window.location.href;
|
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"]');
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||||
if (content_exclusive_bg && amphtml) {
|
if (content_exclusive_bg && amphtml) {
|
||||||
removeDOMElement(content_exclusive_bg);
|
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')) {
|
} else if (url.includes('_amp.html')) {
|
||||||
let voc_advers = document.querySelectorAll('.voc-adver, amp-embed');
|
let voc_advers = document.querySelectorAll('.voc-adver, amp-embed');
|
||||||
removeDOMElement(...voc_advers);
|
removeDOMElement(...voc_advers);
|
||||||
|
|
Loading…
Reference in a new issue