Skip to content

Commit 6e23d79

Browse files
committed
fix
1 parent 8b63a5f commit 6e23d79

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Mouse Gestures/Mouse Gestures.user.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN 鼠标手势
44
// @name:zh-TW 滑鼠手勢
55
// @namespace hoothin
6-
// @version 0.1
6+
// @version 0.2
77
// @description Just a Mouse Gestures
88
// @description:zh-CN 就是个鼠标手势
99
// @description:zh-TW 就是個滑鼠手勢
@@ -25,13 +25,13 @@
2525
var lang = navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
2626
const minLength=256,tg=0.5,
2727
defaultFun={
28-
close:"unsafeWindow.opener = null;unsafeWindow.open('', '_self', '');unsafeWindow.close();",
28+
close:"unsafeWindow.opener=null;unsafeWindow.open('', '_self', '');unsafeWindow.close();",
2929
openNew:"GM_openInTab('about:newtab', false)",
30-
scrollToTop:"window.scrollTo(0, 0)",
31-
scrollToBottom:"window.scrollTo(0, 1073741824)",
32-
back:"window.history.back()",
33-
forward:"window.history.forward()",
34-
reload:"window.location.reload()"
30+
scrollToTop:"unsafeWindow.scrollTo(0, 0)",
31+
scrollToBottom:"unsafeWindow.scrollTo(0, 1073741824)",
32+
back:"unsafeWindow.history.back()",
33+
forward:"unsafeWindow.history.forward()",
34+
reload:"unsafeWindow.location.reload()"
3535
};
3636
switch (lang){
3737
case "zh-CN":

0 commit comments

Comments
 (0)