mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
612 B
JavaScript
1 line
612 B
JavaScript
(()=>{return(e,r)=>{SpinQuery.any(()=>$(".custom-scrollbar"),e=>e.removeClass("custom-scrollbar"));const l=()=>{r.applyStyle("scrollbarStyle");SpinQuery.any(()=>$(".custom-scrollbar"),e=>e.removeClass("custom-scrollbar"));if(!e.useNewStyle&&($("#banner_link").length===0||$("#banner_link").length>0&&e.overrideNavBar&&e.hideBanner)){r.applyImportantStyle("darkStyleNavBar")}r.applyStyle("darkStyle");r.applyImportantStyle("darkStyleImportant")};l();return{reload:l,unload:()=>{r.removeStyle("scrollbarStyle");r.removeStyle("darkStyleNavBar");r.removeStyle("darkStyle");r.removeStyle("darkStyleImportant")}}}})(); |