mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 05:53:41 +02:00
Fix-update Nzz.ch (banners)
This commit is contained in:
parent
f864e3b2eb
commit
8341c9c87f
1 changed files with 10 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue