mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
2 lines
620 B
JavaScript
2 lines
620 B
JavaScript
function newStyle(settings){waitForQuery()(()=>$(".nav-search-keyword"),it=>it.length>0,textBox=>textBox.attr("placeholder","搜索")),waitForQuery()(()=>$(".custom-scrollbar"),it=>it.length>0,it=>it.removeClass("custom-scrollbar"));const navbar=document.getElementsByClassName("bili-wrapper")[0];let stardustStyles=!1;navbar instanceof Element&&(stardustStyles=50===parseInt(window.getComputedStyle(navbar).height));let styles="";styles=`<style id='bilibili-new-style'>${styles=stardustStyles?getStyle("style",settings):getStyle("oldStyle",settings)}</style>`,$("#bilibili-new-style").remove(),$("body").after(styles)}
|