Fix-update Nzz.ch (banners)

This commit is contained in:
magnolia1234 2020-05-06 21:07:57 +02:00
parent f864e3b2eb
commit 8341c9c87f

View file

@ -1,10 +1,6 @@
// clean local storage of sites (with an exemption for hold-list)
var arr_localstorage_hold = ['sfchronicle.com'];
var localstorage_hold = arr_localstorage_hold.some(function(url) {
return matchDomain(url);
});
if (!localstorage_hold){
if (!matchDomain(arr_localstorage_hold)){
window.localStorage.clear();
}
@ -608,6 +604,15 @@ else if (matchDomain('journaldunet.com')) {
}
}
else if (matchDomain('nzz.ch')) {
let messagebox = document.querySelector('.messagebox');
removeDOMElement(messagebox);
let overlay = document.querySelector('.semi-disruptive-overlay__closebtn');
if (overlay) {
overlay.click();
}
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {