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
18 lines
747 B
Markdown
18 lines
747 B
Markdown
# 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
|
|
|
|
1. Clone this repository.
|
|
2. Load this directory in Chrome as an [unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked).
|
|
3. Right-click within the browser to view the context menu.
|