Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created July 7, 2009 08:18
Show Gist options
  • Save erikvold/141958 to your computer and use it in GitHub Desktop.
Save erikvold/141958 to your computer and use it in GitHub Desktop.
Greasemonkey Alert Menu Command UserScript
// ==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