User:Mentor397/common.js

if (window.matchMedia('(prefers-color-scheme: dark)').matches) { dark; }