mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
* Add `Running this extension` section * Change title * Fix title typo * Fix wrong operation * Update `Running this extension` section * Add `Running this extension` section
747 B
747 B
chrome.contextMenus
A sample extension demonstrating use of the chrome.contextMenus API.
Overview
In this sample the chrome.contextMenus API is used to create menu items, listen for different context menu types being clicked, and run code based on what the user has selected.
Implementation Notes
Different console readouts are made when context menu items are clicked. This can be quickly adapted to use new functions or API calls for more advaced functionality.
Running this extension
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Right-click within the browser to view the context menu.