Skip to content
Branch: master
Find file History
Type Name Latest commit message Commit time
Failed to load latest commit information.
icon Add an example for menus.onShown and menus.refresh() (#343) Mar 1, 2018
background.js Make menus calls synch (#345) Mar 8, 2018


What it does

This extension adds a menu item that's shown when the context menu is shown over a link. When the item is clicked, it just opens the link in the current tab.

The extension also listens for the onShown event: when this event is fired, the extension gets the hostname for the link and displays it in the menu item's title, so the user knows the hostname for the link they are thinking of clicking.

What it shows

This extension is a demo of the menus.onShown and menus.refresh() features of the menus API.

The onShown event enables extensions to be notified when the menu is shown. At that point they are able to add, remove, or update their menu items, then refresh the menu using refresh().

You can’t perform that action at this time.