mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-30 20:14:19 +01:00
1 line
362 B
JavaScript
1 line
362 B
JavaScript
if(localStorage.getItem("nightTabStyle")){const e=document.createElement("style");switch(e.type="text/css",e.media="screen",localStorage.getItem("nightTabStyle")){case"light":e.innerHTML="html, body {background-color: rgb(255, 255, 255);}";break;case"dark":e.innerHTML="html, body {background-color: rgb(0, 0, 0);}"}document.querySelector("head").appendChild(e)} |