Created
July 7, 2009 08:18
-
-
Save erikvold/141958 to your computer and use it in GitHub Desktop.
Greasemonkey Alert Menu Command UserScript
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 JavaScript Alert Message | |
// @author Erik Vold | |
// @namespace alert | |
// @include * | |
// @version 1.0 | |
// @description This will create a javascript alert with the provided string. | |
// ==/UserScript== | |
alertMessage= function( str ){ | |
alert( str ); | |
return; | |
}; | |
GM_registerMenuCommand( "alert", alertMessage, "", "", "a" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment