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

@@ -1,4 +1,4 @@
# Action
# chrome.action
This sample demonstrates the use of Action API which changes the badge text,icon,hover text or popup page depending on the user's choice or action.
@@ -17,3 +17,9 @@ This sample demonstrates the Action API by allowing the user to perform the belo
## Implementation Notes
The user can set values to implement above functionalities from [here](demo/index.html)
## 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. Click the extension's icon in the toolbar to open the demo page.

View File

@@ -1,4 +1,4 @@
# chrome.browsingData
# chrome.alarms
This sample demonstrates the `chrome.alarms` API by allowing the user to set alarms using an extension page.

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.

View File

@@ -5,3 +5,9 @@ This sample demonstrates the `webRequest.onAuthRequired` listener to detect an a
## Overview
When an authentication check is detected, a check is made to confirm that the request has come from the correct source. Account credentials are then provided for the response via an auth handler.
## 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. Open a new tab and navigate to <https://httpbin.org/basic-auth/guest/guest>. You will be prompted to enter a username and password. With this extension installed, the username and password will be automatically provided.