Skip to content

Commit 8b63a5f

Browse files
committed
fix
1 parent f5c0490 commit 8b63a5f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Mouse Gestures/Mouse Gestures.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
// @grant GM_setValue
1414
// @grant GM_getValue
1515
// @grant GM_registerMenuCommand
16+
// @grant unsafeWindow
17+
// @license MIT License
18+
// @compatible chrome
19+
// @compatible firefox
1620
// ==/UserScript==
1721

1822
(function() {
@@ -21,7 +25,7 @@
2125
var lang = navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
2226
const minLength=256,tg=0.5,
2327
defaultFun={
24-
close:"window.top.close()",
28+
close:"unsafeWindow.opener = null;unsafeWindow.open('', '_self', '');unsafeWindow.close();",
2529
openNew:"GM_openInTab('about:newtab', false)",
2630
scrollToTop:"window.scrollTo(0, 0)",
2731
scrollToBottom:"window.scrollTo(0, 1073741824)",

0 commit comments

Comments
 (0)