Files
chrome-extensions-samples/functional-samples/sample.optional_permissions
Oliver Dunk 77f3b8d807 Fix images in READMEs (#1178)
These were being loaded from a CDN from our old hosting
infrastructure for developer.chrome.com. This is no longer live,
and we shouldn't have been using external images anyway, so move
all of the images to the repo.

Fixes #1171
2024-06-06 14:28:26 +02:00
..
2023-02-22 13:25:39 +01:00
2024-02-20 12:53:23 +01:00
2023-05-01 09:48:38 -04:00
2024-06-06 14:28:26 +02:00
2023-02-22 13:25:39 +01:00

Optional permissions in a new tab

This new tab extension demonstrates how extensions can provide users the option to enable an additional feature. In this example, they optionally display top sites.

See Optional permissions to learn more.

Testing the extension

Follow the instructions to load an [unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked, then open a new tab.

It should look like this:

New tab with the focus of the day and optional feature button

Then, click on "Allow Extension to Access to top sites". You will see the following message:

Allow permissions dialog

If you accept, it will display a list of your top sites.

New tab displaying top sites