(()=>{return(e,n)=>{new SpinQuery(()=>$(".head-content.bili-wrapper>div.search:not(.filter-item)"),e=>e.length>0&&$(".nav-con.fr").filter((e,n)=>n.innerText).length>0,e=>{const n=$(".nav-con.fr").filter((e,n)=>n.innerText);e.detach().insertAfter(n)}).start();SpinQuery.any(()=>$("#banner_link"),()=>n.removeStyle("tweetsStyle"));if(e.preserveRank){SpinQuery.any(()=>$(".head-content.bili-wrapper>div.search:not(.filter-item) .searchform,.nav-con #nav_searchform"),e=>{e.addClass("preserve-rank");if(e.find("a.icons-enabled").length===0){e.prepend(`\n \n \n \n `)}})}else{SpinQuery.any(()=>$(".head-content.bili-wrapper>div.search:not(.filter-item) .searchform,.nav-con #nav_searchform"),e=>{e.removeClass("preserve-rank");e.find("a.icons-enabled").remove()})}if(!e.showBanner){n.applyStyle("noBannerStyle")}else{n.removeStyle("noBannerStyle")}}})();