Files
chrome-extensions-samples/functional-samples/sample.optional_permissions/README.md
gmf-uah 5dad4a4879 Update README.md (#1527)
* 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
2026-01-07 15:14:07 +00:00

1.1 KiB

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:

New tab with optional permission button

Then, click on Allow Extension to Access to Top Sites. You will see the following message:

Permissions dialog with Deny and Allow buttons respectively

Selecting Allow will display a list of the websites you visit most.

New tab displaying top sites