User:Andrew071117/global.js

const darkMode = document.documentElement.classList.contains( 'client-dark-mode' ); $( document.documentElement ).toggleClass( 'client-dark-mode', darkMode );