Chrome Extensions Samples

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 _archive/mv2/.

Samples

The directory structure is as follows:

api-samples/ - extensions focused on a single API package functional-samples/ - full featured extensions spanning multiple API packages _archive/apps/ - deprecated Chrome Apps platform (not listed below) _archive/mv2/ - resources for manifest version 2

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

Sample Calls
Hello Extensions
tutorial.hello-world
Extension popup
Page Redder
sample.page-redder
action.onClicked scripting.executeScript
My Bookmarks
sample.bookmarks
bookmarks.create bookmarks.getTree bookmarks.remove bookmarks.update
Chromium Milestones
sample.milestones
default_popup tabs.query
Cookie Clearer
api-samples/cookies/cookie-clearer
cookies.getAll cookies.remove tabs.query
Omnibox - New Tab Search
api-samples/omnibox/new-tab-search
omnibox.onInputEntered tabs.create
Web Accessible Resources
api-samples/web-accessible-resources
action.onClicked runtime.getURL runtime.onInstalled runtime.onInstalledReason tabs.create web_accessible_resources
Contributing

Please see the CONTRIBUTING file for information on contributing to the chrome-extensions-samples project.

License

chrome-extensions-samples are authored by Google and are licensed under the Apache License, Version 2.0.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。