Bilibili-Evolved/utils/hide-top-search.js
2018-10-16 22:14:30 +08:00

19 lines
435 B
JavaScript

(() =>
{
return () =>
{
const selectors = [
".nav-search-keyword",
".search-keyword"
];
for (const selector of selectors)
{
new SpinQuery(
() => $(selector),
it => it.length > 0 && it.attr("placeholder").length > 0,
textBox => textBox.attr("placeholder", "搜索")
).start();
}
};
})();