显示引导时隐藏插件自带的原始无结果文字避免冗余
This commit is contained in:
parent
2b15aa9092
commit
332bdeb422
|
|
@ -61,6 +61,15 @@
|
|||
if (document.getElementById(GUIDE_ID)) return;
|
||||
var container = document.querySelector('.navbar__search');
|
||||
if (!container) return;
|
||||
|
||||
// 隐藏插件自带的原始无结果提示
|
||||
var listbox = document.querySelector('[role="listbox"]');
|
||||
if (listbox) {
|
||||
for (var i = 0; i < listbox.children.length; i++) {
|
||||
listbox.children[i].style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
container.appendChild(createGuide());
|
||||
|
||||
if (pollTimer) clearInterval(pollTimer);
|
||||
|
|
|
|||
Loading…
Reference in New Issue