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 2, 2024
1 parent e99e5d7 commit be786bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7219,6 +7219,9 @@
});
}
searchTypes = [];
this.allSiteBtns = [];
this.allListBtns = [];
this.allLists = [];
this.historyTypeEle = null;
for (let siteConfig of searchData.sitesConfig) {
await this.createType(siteConfig);
Expand Down Expand Up @@ -8472,7 +8475,7 @@
if (se.dataset.link) {
checkKw = href || keyWords;
} else {
checkKw = se.dataset.txt ? keyWords : (href || keyWords || location.href);
checkKw = se.dataset.txt ? (keyWords || (targetElement && targetElement.innerText) || "") : (href || keyWords || location.href);
}
pass = self.checkKwFilter(data.kwFilter, checkKw);
}
Expand Down

0 comments on commit be786bc

Please sign in to comment.