mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
* Update README.md Fixed the 'unpacked extension' link and revised wording for clarity * Update README.md Revised wording [2] * Clarify README Better wording on the first two sentences
Optional permissions in a new tab
This sample extension changes the New Tab page, prompting the user for permission to display their top sites. It demonstrates how extensions can provide users with the option to enable additional features.
See optional permissions to learn more.
Testing the extension
Follow the instructions to load an unpacked extension, then open a new tab.
It should look like this:
Then, click on Allow Extension to Access to Top Sites. You will see the following message:
Selecting Allow will display a list of the websites you visit most.