mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
Adds readme files for every mv3 sample (#973)
* Adds readme files for every mv3 sample * Update api-samples/alarms/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/alarms/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/override/blank_ntp/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/omnibox/new-tab-search/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/omnibox/new-tab-search/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/contextMenus/global_context_search/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/cookies/cookie-clearer/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/default_command_override/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/il8n/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/il8n/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/default_command_override/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/favicon/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/favicon/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/override/blank_ntp/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update api-samples/fontSettings/fontSettings Basic/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Update README.md * Update api-samples/fontSettings/fontSettings Basic/README.md Co-authored-by: Joe Medley <jmedley@google.com> * Updates omnibox sample with small clarity improvement --------- Co-authored-by: Joe Medley <jmedley@google.com>
This commit is contained in:
committed by
GitHub
parent
307da41987
commit
05b8106ce5
15
api-samples/contextMenus/global_context_search/README.md
Normal file
15
api-samples/contextMenus/global_context_search/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# chrome.contextMenus
|
||||
|
||||
This sample demonstrates the `chrome.contextMenus` API by letting a user switch between searching different countries' versions of Google via a `contextMenu`.
|
||||
|
||||
## Overview
|
||||
|
||||
The extension uses `chrome.contextMenus.create()` to populate the context menu with locale options based on an options menu in the popup. A `chrome.contextMenus.onClicked.addListener()` event will open a specific locale's Google homepage when one of the extension's context menu options are clicked.
|
||||
|
||||
## 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. Pin the extension to the taskbar to access the action button.
|
||||
4. Open the extension popup by clicking the action button and interact with the UI.
|
||||
5. Right click within the browser to view and interact with the context menu.
|
||||
Reference in New Issue
Block a user