Files
Rin 99ba96e67c security: restrict content script matches to specific domain in favicon sample (#1610)
* security: restrict content script matches to specific domain instead of <all_urls>

* docs: update README to reflect domain restriction
2026-01-08 14:11:55 +00:00
..
2023-02-22 13:25:39 +01:00
2023-02-22 13:25:39 +01:00

Fetching a favicon in a content script

This example fetches the favicon from www.google.com and inserts it at the top left of Google search pages.

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.google.com.

It should look like this:

Content script using the Favicon API