mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
559 B
JavaScript
1 line
559 B
JavaScript
(()=>{return(e,t)=>{const{NavbarComponent:i}=t.import("custom-navbar-component");class s extends i{constructor(){super();this.touch=false;this.href="javascript:(bilibiliEvolved.settings.useDarkStyle = !bilibiliEvolved.settings.useDarkStyle)";addSettingsListener("useDarkStyle",e=>{if(e){this.html=`<i style="font-size: 20px; line-height: 1;" class="mdi mdi-weather-sunny"></i>`}else{this.html=`<i style="font-size: 18px; line-height: 1; margin: 0 1px;" class="mdi mdi-weather-night"></i>`}},true)}get name(){return"darkMode"}}return{export:{DarkMode:s}}}})(); |