Created
March 27, 2011 01:49
-
-
Save sizzlemctwizzle/888832 to your computer and use it in GitHub Desktop.
GM_registerMenuCommand Test Case
This file contains hidden or 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 GM_registerMenuCommand Test Case | |
| // @namespace sizzlemctwizzle | |
| // @description Test GM_registerMenuCommand | |
| // @include * | |
| // ==/UserScript== | |
| GM_registerMenuCommand("Test Command", function() { alert('Command selected'); }); | |
| var div = document.createElement('div'); | |
| div.textContent = "This text is added to the page when the script runs."; | |
| document.body.appendChild(div); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment