Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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