Skip to content

Commit

Permalink
Update searchJumper.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Jul 13, 2024
1 parent 83657f9 commit 72b9420
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1999,9 +1999,17 @@
#search-jumper #search-jumper-alllist.new-mode .sitelistCon>div:hover>p {
opacity: 1;
}
#search-jumper #search-jumper-alllist.showbg+.groupTab,
#search-jumper #search-jumper-alllist.showbg>.sitelistBox {
transition: .3s;
opacity: 0;
}
#search-jumper #search-jumper-alllist.showbg>.search-jumper-historylistcon,
#search-jumper #search-jumper-alllist.showbg>.inputGroup,
#search-jumper #search-jumper-alllist.showbg>.search-jumper-btn {
transition: .3s;
opacity: 0.3;
}
#search-jumper.search-jumper-showall>#search-jumper-alllist.showbg:hover~.search-jumper-showallBg {
background: unset;
}
Expand Down Expand Up @@ -3714,14 +3722,18 @@
storage.setItem("allPageNewMode", alllist.classList.contains("new-mode"));
});
this.modeSwitch.addEventListener("mouseenter", e => {
e.preventDefault();
e.stopPropagation();
alllist.classList.add("showbg");
if (allPageBgUrl) {
e.preventDefault();
e.stopPropagation();
alllist.classList.add("showbg");
}
});
this.modeSwitch.addEventListener("mouseleave", e => {
e.preventDefault();
e.stopPropagation();
alllist.classList.remove("showbg");
if (allPageBgUrl) {
e.preventDefault();
e.stopPropagation();
alllist.classList.remove("showbg");
}
});
this.modeSwitch.addEventListener("contextmenu", e => {
if (allPageBgUrl) {
Expand Down

0 comments on commit 72b9420

Please sign in to comment.