{ const init = () =>{ document.cookie.split('; ').forEach(itCookie = cookie =>{ //I know that this is a shitty way of fixing things... But I'll try to fix it in the future. if(cookie.split("=")[0] == "theme" && cookie.split("=")[1] == "darkmode"){ document.querySelector(".toggleDarkmode").innerHTML = "Enter lightmode" document.querySelector(".toggleDarkmode").id = "lightmode"; } if(cookie.split("=")[0] == "theme" && cookie.split("=")[1] == "customTheme"){ document.querySelector(".background").innerHTML = '