Created
April 9, 2015 14:55
-
-
Save reek/0e302e8d2dd4a614b085 to your computer and use it in GitHub Desktop.
GM_registerMenuCommand @run-at document-start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name test | |
// @namespace test | |
// @include * | |
// @version 1 | |
// @grant GM_registerMenuCommand | |
// @run-at document-start | |
// ==/UserScript== | |
(function () { | |
GM_registerMenuCommand('Test1', function () { | |
location.href = "https://getfirebug.com/"; | |
}); | |
}()); | |
window.addEventListener('load', function () { | |
GM_registerMenuCommand('Test2', function () { | |
location.href = "https://getfirebug.com/"; | |
}); | |
}); | |
setTimeout(function () { | |
GM_registerMenuCommand('Test3', function () { | |
location.href = "https://getfirebug.com/"; | |
}); | |
}, 0) | |
GM_registerMenuCommand('Test4', function () { | |
location.href = "https://getfirebug.com/"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment