-
-
Notifications
You must be signed in to change notification settings - Fork 66
GM_registerMenuCommand
shen yin edited this page Jan 28, 2022
·
1 revision
Availability
Stay 2.0.2+
GM_registerMenuCommand( caption, commandFunc, accessKey )
caption
The caption to display on the menu item.
commandFunc
The function to call when this menu item is selected by the user.
accessKey
A single character that can be used to select command when the menu is open. (Ignored on Stay)
void
GM_registerMenuCommand("Hello, world (simple)", () => alert("Hello, world!"));