Fix for corriere.it

This commit is contained in:
loviuz 2023-04-05 20:14:30 +02:00
parent ac6362d3cf
commit e1dc1f2d32
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
// @name No Cookiewall Italia
// @namespace https://este.linux.it
// @match https://www.ansa.it/*
// @match https://www.corriere.it/*
// @match https://*.corriere.it/*
// @match https://www.gazzetta.it/*
// @match https://www.ilsole24ore.com/*
// @version 1.4.1
@ -38,6 +38,7 @@ switch(window.location.hostname){
break;
case "www.corriere.it":
case "corrieredelveneto.corriere.it":
var ci = setInterval( function(){
var cookiewall_desktop = document.querySelector('.wall-modal');
var cookiewall_mobile = document.querySelector('.privacy-cp-wall');
@ -45,7 +46,7 @@ switch(window.location.hostname){
// Cookiewall desktop
if (cookiewall_desktop) {
cookiewall_desktop.style.display = 'none';
document.querySelector('.tp-backdrop').classList.remove('tp-active');
document.querySelector('.tp-backdrop').style.display = 'none';
document.querySelector('body').classList.remove('tp-modal-open');
clearTimeout(ci);
}