Files
chrome-extensions-samples/functional-samples/sample.optional_permissions
Zaif Senpai 0a67271feb Replaced clearbit API (deprecated) (#1453) (#1456)
* Replaced clearbit API (deprecated) with Google's favicon snatcher

* Updated UI designs for optional_permissions examples of both mv2 and mv3

Using chrome's build in favicon provider for optional_permissions examples

* Run linter

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2025-05-08 13:59:07 +01:00
..
2024-02-20 12:53:23 +01:00
2024-06-06 14:28:26 +02: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