显示引导时隐藏插件自带的原始无结果文字避免冗余

This commit is contained in:
ZxR 2026-05-13 19:31:42 +08:00
parent 2b15aa9092
commit 332bdeb422
1 changed files with 9 additions and 0 deletions

View File

@ -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);