Skip to content

Commit ba781d9

Browse files
committed
Update searchJumper.user.js
1 parent 53857ff commit ba781d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

searchJumper.user.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10197,11 +10197,15 @@
1019710197
inPagePostParams.shift();
1019810198
if (inPagePostParams && inPagePostParams.length) {
1019910199
storage.setListItem("inPagePostParams", location.hostname, inPagePostParams);
10200-
storage.setItem("copyStore", JSON.stringify(copyList));
10200+
if (copyList && copyList.length) {
10201+
storage.setItem("copyStore", JSON.stringify(copyList));
10202+
}
1020110203
} else {
10202-
_GM_setClipboard(copyList.join("\n"));
1020310204
storage.setListItem("inPagePostParams", location.hostname, "");
1020410205
storage.setItem("copyStore", "");
10206+
if (copyList && copyList.length) {
10207+
_GM_setClipboard(copyList.join("\n"));
10208+
}
1020510209
}
1020610210
if (param[0] === '@reload') {
1020710211
location.reload(!!param[1]);

0 commit comments

Comments
 (0)