(() => { return (settings, resources) => { new SpinQuery( () => $(".head-content.bili-wrapper>div.search").not(".filter-item"), it => it.length > 0 && $(".nav-con.fr").filter((_, it) => it.innerText).length > 0, textBox => { const rightNav = $(".nav-con.fr").filter((_, it) => it.innerText); textBox.detach() // insert after only the "real" right-nav. There will be 2 in Edge... .insertAfter(rightNav); } ).start(); }; })();