The name to show in the popup menu.
Callback function when the command is clicked in the menu.
Optional
options: { VM2.15.9
Optional
autoDefault: true
.
Whether to auto-close the popup after the user invoked the command.
Optional
id?: stringDefault: the caption
parameter.
In 2.15.9-2.16.1 the default was a randomly generated string.
Optional
title?: stringA hint shown in the status bar when hovering the command.
Registers a command in Violentmonkey popup menu. Returns the command's id since VM2.12.5, see description of the
id
parameter. If you want to add a shortcut, please see@violentmonkey/shortcut
.