chrome-extensions-samples/functional-samples/sample.favicon-cs
..
README.md
content.js
manifest.json
style.css

README.md

Fetching a favicon in a content script

This example fetches the favicon from www.google.com and inserts it at the top left of every page.

Note: This extension does not work on chrome://extensions.

See Fetching favicons to learn more.

Testing the extension

  1. Follow the instructions to load an unpacked extension.
  2. Navigate to www.example.com.

It should look like this:

Content script using the Favicon API