Bilibili-Evolved/utils/hide-top-search.js
2019-02-16 19:33:27 +08:00

12 lines
313 B
JavaScript

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