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 Oct 15, 2024
1 parent e6d9c07 commit f075e2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7748,8 +7748,8 @@
return `◎${p}◎`;
}).replace(/^◎|◎$/g, "");
}
this.lastSearchEngineWords = words;
return words;
this.lastSearchEngineWords = words.replace(/['";]/g, ' ');
return this.lastSearchEngineWords;
}

setInPageWords(inPageWords, cb) {
Expand Down Expand Up @@ -7899,9 +7899,9 @@
}
this.insertHistory(this.currentType, true);
this.wordModeBtn.classList.add("checked");
let inPageWords = searchData.prefConfig.showInSearchEngine ? localKeywords : globalInPageWords;
let inPageWords = searchData.prefConfig.showInSearchEngine ? this.searchEngineWords(localKeywords) : globalInPageWords;
if (inPageWords) {
this.setInPageWords(this.searchEngineWords(inPageWords).replace(/['";]/g, ' '));
this.setInPageWords(inPageWords);
}
}

Expand Down

0 comments on commit f075e2e

Please sign in to comment.