function setCloak() { var tabicon = getCookie("tabicon"); if (tabicon) { var link = document.querySelector("link[rel~='icon']"); if(link){ link.remove(); } var link = document.querySelector("link[rel~='shortcut icon']"); if(link){ link.remove(); } link = document.createElement('link'); link.rel = 'icon'; document.head.appendChild(link); link.href = tabicon; } var tabname = getCookie("tabname"); if (tabname) { document.title = tabname; } } function getCookie(cname) { let name = cname + "="; let decodedCookie = decodeURIComponent(document.cookie); let ca = decodedCookie.split(';'); for(let i = 0; i 0) { panicurl = getCookie("panicurl") if (panicurl == "") { panicurl = "https://google.com" } $("#panicmode").prop({href: panicurl}) } const pressed = []; const secretCode = 'safemode'; window.addEventListener('keyup', (e) => { pressed.push(e.key); pressed.splice(-secretCode.length - 1 , pressed.length - secretCode.length); if (pressed.join('').includes(secretCode)) { window.location.href = panicurl; } }); } document.addEventListener("DOMContentLoaded", function() { setCloak(); panicMode(); });