User:Redmin/global.js

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