Bilibili-Evolved/style/override-navbar/override-navbar.js
2018-10-16 22:14:30 +08:00

21 lines
543 B
JavaScript

(() =>
{
return (settings, resources) =>
{
new SpinQuery(
() => $(".head-content.bili-wrapper>div.search").not(".filter-item"),
it => it.length > 0 && $(".nav-con.fr").length > 0,
textBox =>
{
textBox.detach()
.insertAfter(".nav-con.fr");
}
).start();
resources.applyStyle("navbarOverrideStyle");
if (!settings.showBanner)
{
resources.applyStyle("noBannerStyle");
}
};
})();