From 7f214b83e46ae7e80c9530169707746aeedf774c Mon Sep 17 00:00:00 2001 From: hoothin Date: Fri, 29 Nov 2024 18:12:04 +0800 Subject: [PATCH] Update searchJumper.user.js --- searchJumper.user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/searchJumper.user.js b/searchJumper.user.js index 73e5bd75..c5945785 100644 --- a/searchJumper.user.js +++ b/searchJumper.user.js @@ -13401,7 +13401,9 @@ function getSelectStr() { let selStr = extSelectionText || picker.getPickerStr() || window.getSelection().toString(); - extSelectionText = ""; + setTimeout(() => { + extSelectionText = ""; + }, 1); if (!selStr) { let tar = getActiveElement(document); if (tar && /^(TEXTAREA|INPUT)$/i.test(tar.nodeName)) {