Bilibili-Evolved/min/dark-styles.min.js
2019-04-29 22:46:55 +08:00

1 line
518 B
JavaScript

(()=>{return(r,l)=>{SpinQuery.any(()=>$(".custom-scrollbar"),r=>r.removeClass("custom-scrollbar"));const e=()=>{l.applyStyle("scrollbarStyle");SpinQuery.any(()=>$(".custom-scrollbar"),r=>r.removeClass("custom-scrollbar"));if(r.hideBanner){l.applyImportantStyle("darkStyleNavBar")}l.applyStyle("darkStyle");l.applyImportantStyle("darkStyleImportant")};e();return{reload:e,unload:()=>{l.removeStyle("scrollbarStyle");l.removeStyle("darkStyleNavBar");l.removeStyle("darkStyle");l.removeStyle("darkStyleImportant")}}}})();