/chrome-extensions-samples

Chrome Extensions Samples

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Chrome Extensions samples

Official samples for Chrome Extensions and the Chrome Apps platform. Note that Chrome Apps are deprecated. Learn more on the Chromium blog.

For more information on extensions, see Chrome Developers.

Note: Samples for Manifest V3 are still being prepared. In the mean time, consider referring to mv2-archive/.

Samples

The directory structure is as follows:

  • api/ - extensions focused on a single API package
  • (To be added) howto/ - extensions that show how to perform a particular task
  • tutorials/ - multi-step walkthroughs referenced inline in the docs
  • examples/ - full featured extensions spanning multiple API packages
  • apps/ - deprecated Chrome Apps platform (not listed below)
  • mv2-archive/ - resources for manifest version 2

To experiment with these samples, please clone this repo and use 'Load Unpacked Extension'. Read more on Getting Started.

Sample Calls
Hello Extensions
tutorials/hello-world
Page Redder
examples/page-redder
My Bookmarks
examples/bookmarks
Chromium Milestones
examples/milestones
Cookie Clearer
api/cookies/cookie-clearer
Omnibox - New Tab Search
api/omnibox/new-tab-search
Web Accessible Resources
api/web-accessible-resources