Skip to content

Commit 3a6b725

Browse files
committed
Update searchJumper.user.js
1 parent 5410365 commit 3a6b725

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

searchJumper.user.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6619,7 +6619,12 @@
66196619
};
66206620
}
66216621
document.addEventListener("keydown", self.showAllKeydownHandler, true);
6622-
if (this.searchJumperInputKeyWords.value) {
6622+
if (cacheFilter) {
6623+
this.searchInput.value = cacheFilter;
6624+
this.searchInput.dispatchEvent(new Event("input"));
6625+
this.searchInput.focus();
6626+
this.searchInput.select();
6627+
} else if (this.searchJumperInputKeyWords.value) {
66236628
this.searchJumperInputKeyWords.focus();
66246629
this.searchJumperInputKeyWords.select();
66256630
}
@@ -7465,7 +7470,7 @@
74657470
} else {
74667471
this.searchJumperInputKeyWords.focus();
74677472
if (this.searchJumperInputKeyWords.value) {
7468-
searchWithCurrentFilter(e);
7473+
//searchWithCurrentFilter(e);
74697474
}
74707475
saveCacheFilter();
74717476
}
@@ -7777,6 +7782,8 @@
77777782
if (type.classList.contains("notmatch")) return;
77787783
let typeName = type.dataset.type;
77797784
let icon = type.firstElementChild.cloneNode(true);
7785+
icon.children[0] && (icon.children[0].style.display = "none");
7786+
icon.children[1] && (icon.children[1].style.display = "");
77807787
let groupSpan = document.createElement("span");
77817788
groupSpan.appendChild(icon);
77827789
groupSpan.dataset.type = typeName;

0 commit comments

Comments
 (0)