1 2 3 4 5 6
(function() { var html = document.getElementsByTagName('html')[0]; if (localStorage.getItem('dark-mode') === 'true') { html.classList.add('dark'); } })();