GM_notification

erikvold edited this page Dec 24, 2011 · 7 revisions

Description

GM_notification will open a Growl-styled notification for the user.

Arguments

String msg

The message sent to the user.

String title

Optional. The title for the notification. Defaults to the user script's name.

String icon

Optional. The URL of an image to use for the notification. Defaults to the script's @icon (if specified and valid) or Scriptish's default icon.

Function callback

Optional. A callback function triggered when the user clicks on the notification.

Returns

undefined

Examples

GM_notification("I just did some work for you automatically, you're welcome ;p");
GM_notification("Analysis complete!", "Computer", null, function() {/*do something here*/});

Related Pages

Manual: API