Add readme files to existing samples & fix typos (#981)

* Add `Running this extension` section

* Change title

* Fix title typo

* Fix wrong operation

* Update `Running this extension` section

* Add `Running this extension` section
This commit is contained in:
Xuezhou Dai
2023-07-18 00:05:43 +08:00
committed by GitHub
parent 9d93ff18e3
commit a3966b4d92
5 changed files with 21 additions and 3 deletions

View File

@@ -9,3 +9,9 @@ In this sample the chrome.contextMenus API is used to create menu items, listen
## 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.

View File

@@ -12,4 +12,4 @@ The extension uses `chrome.contextMenus.create()` to populate the context menu w
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.
5. Select the text you want to search and right-click within the selection to view and interact with the context menu.