menus/
folder of the extension.Menu1
and three sub menu items Sub Menu1
, Sub Menu2
and Sub Menu3
. There will be a separator between Sub Menu2
and Sub Menu3
.id
is omitted, command
id will be used for the id.separator
| checkbox
.first
| last
(default) | before
| after
.before
and after
.id
matches an existing id of menu item, submenu items will be added under the existing menu item.checkbox
. To change checked states of menu items as follow.<div id="statusbar" ...></div>
. You can find in Elements tab of DevTools (Debug > Show DevTools). We can add a new Context Menu having only one menu item for Statusbar as follow: