mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
184 B
JavaScript
1 line
184 B
JavaScript
(()=>(e,a)=>{const s=matchMedia("(prefers-color-scheme: dark)");const t=a=>{if(a!==e.useDarkStyle){e.useDarkStyle=a}};t(s.matches);s.addEventListener("change",(e=>{t(e.matches)}))})(); |