af8d89df7f | ||
---|---|---|
apps | ||
mv2-archive | ||
tools | ||
tutorials/getting-started | ||
.gitignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
README.md
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.
Samples
The directory structure is as follows:
- api/ - extensions focused on a single API package
- howto/ - extensions that show how to perform a particular task
- tutorials/ - multi-step walkthroughs referenced inline in the docs
- extensions/ - full featured extensions spanning multiple API packages
- apps/ - deprecated Chrome Apps platform (not listed below)
To experiment with these samples, please clone this repo and use 'Load Unpacked Extension'. Read more on Getting Started.
Sample | Calls |
---|---|
My Bookmarks A browser action with a popup dump of all bookmarks, including search, add, edit and delete. |
|
Page Redder Make the current page red |
|
Print this page Adds a print button to the browser. |
|
A browser action which changes its icon when clicked Click browser action icon to change color! |
|
A browser action with a popup that changes the page color Change the current page color |
|
BrowsingData API: Basics A trivial usage example. |
|
Sample Extension Commands extension Press Ctrl+Shift+F to open the browser action popup, press Ctrl+Shift+Y to send an event. |
|
Content settings Shows the content settings for the current site. |
|
Context Menus Sample Shows some of the features of the Context Menus API |
|
Context Menus Sample (with Event Page) Shows some of the features of the Context Menus API using an event page |
|
Global Google Search Use the context menu to search a different country's Google |
|
Cookie API Test Extension Testing Cookie API |
|
Live HTTP headers Displays the live log with the http requests headers |
|
JavaScript pause/resume Pauses / resumes JavaScript execution |
|
Tab Flipper Press Ctrl+Shift+Right or Ctrl+Shift+Left (Command+Shift+Right or Command+Shift+Left on a Mac) to flip through window tabs |
|
Desktop Capture Example Show desktop media picker UI |
|
My Devices A browser action with a popup dump of all devices signed into the same account as the current profile. |
|
FirePHP for Chrome Extends the Developer Tools, adding support for parsing FirePHP messages from server |
|
Chrome Query Extends the Developer Tools, adding a sidebar that displays the jQuery data associated with the selected DOM element. |
|
tabCast Creates a WiFi Display Session from the captured tab media stream using chrome.displaySource API. |
|
Document Scanning API Sample |
|
Download Filename Controller Download Filename Controller |
|
Download Selected Links Select links on a page and download them. |
|
Download Manager Button Browser Action Download Manager User Interface for Google Chrome |
|
Download and Open Button Download and Open Context Menu Button |
|
Downloads Overwrite Existing Files All downloads overwrite existing files instead of adding ' (1)', ' (2)', etc. |
|
Event Page Example Demonstrates usage and features of the event page |
|
extension.isAllowedFileSchemeAccess and extension.isAllowedIncognitoAccess ExampleDemonstrates the extension.isAllowedFileSchemeAccess and extesion.isAllowedIncognitoAccess APIs |
|
Fake Archive Handler App Demonstrate File System Provider API usage for apps. |
|
File System Provider API Extension Example Demonstrate features of the API like mounting, listing directories, etc for extensions. |
|
Advanced Font Settings Customize per-script font settings. |
|
History Override Overrides the History Page |
|
Typed URL History Reads your history, and shows the top ten pages you go to by typing the URL. |
|
CLD Displays the language of a tab |
|
Detect Language Detects up to 3 languages and their percentages of the provided string |
|
AcceptLanguage Returns accept languages of the browser |
|
Minimal Localized Hosted App This is the minimal set of data required to upload a localized hosted application to the web store. |
|
Idle - Simple Example Demonstrates the Idle API |
|
Test IME A simple IME that converts all keystrokes to upper case. |
|
Message Timer Times how long it takes to send a message to a content script and back. |
|
Native Messaging Example Send a message to a native application. |
|
Notification Demo Shows off desktop notifications, which are "toast" windows that pop up on the desktop. |
|
Omnibox New Tab Search Type 'nt' plus a search term into the Omnibox to open search in new tab. |
|
Omnibox Example To use, type 'omnix' plus a search term into the Omnibox. |
|
Blank new tab page Override the new tab page with a blank one |
|
iGoogle new tab page Override the new tab page with iGoogle |
|
Page action by content Shows a page action for HTML pages containing a video |
|
Page action by URL Shows a page action for urls which have the letter 'g' in them. |
|
Animated Page Action This extension adds an animated browser action to the toolbar. |
|
Top Chrome Extension Questions Sample demonstration of the optional permissions API. |
|
Keep Awake Override system power-saving settings. |
|
Block/allow third-party cookies API example extension Sample extension which demonstrates how to access a preference. |
|
Block/allow referrer API example extension Sample extension which demonstrates how to access a preference. |
|
Print Extension Sends print job directly to the printers installed on the Chromebook |
|
Print Job History Reads your print history and displays the recent print jobs. |
|
Process Monitor Adds a browser action that monitors resource usage of all browser processes. |
|
Show Tabs in Process Adds a browser action showing which tabs share the current tab's process. |
|
Stylizr Spruce up your pages with custom CSS. |
|
Tab Capture Example Capture a tab and play in a |
|
Tab Inspector Utility for working with the extension tabs api |
|
Keyboard Pin Creates a keyboard shortcut (Alt + Shift + P) to toggle the pinned state of the currently selected tab |
|
Test Screenshot Extension Demonstrate screenshot functionality in the chrome.tabs api. |
|
Tabs Zoom API Demo This extension allows the user to explore features of the new tabs zoom api. |
|
Top Sites Shows the top sites in a browser action |
|
NTP prototyping extension extension to prototype new NTP designs |
|
Console TTS Engine A "silent" TTS engine that prints text to a small window rather than synthesizing speech. |
|
Drink Water Event Popup Demonstrates usage and features of the event page by reminding user to drink water |
|
WebNavigation Tech Demo Demonstration of the WebNavigation extension API. |
|
Webview transparency Sample of the webview.captureVisibleRegion api |
|
WebView Extension Communications Demo: App |
|
WebView Extension Communications Demo: Extension Provides content scripts to an app hosting a WebView. |
|
Merge Windows Merges all of the browser's windows into the current window |
|
Simple Background App |
|
Calculator A simple calculator. |
|
App Launcher Get access to your apps in a browser action |
|
Chromium Buildbot Monitor Displays the status of the Chromium buildbot in the toolbar. Click to see more detailed status in a popup. |
|
Google Calendar Checker (by Google) Quickly see the time until your next meeting from any of your calendars. Click on the button to be taken to your calendar. |
|
CatBlock I can't has cheezburger! |
|
Catifier Moar cats! |
|
Chromium Search Add support to the omnibox to search the Chromium source code. |
|
Constant Context Highlights elements with keywords on developer.chrome |
|
Download Images Displays all webpage images and allows user to download |
|
Email this page (by Google) This extension adds an email button to the toolbar which allows you to email the page link using your default mail client or Gmail. |
|
Chrome Sounds Enjoy a more magical and immersive experience when browsing the web using the power of sound. |
|
Google Document List Viewer Demonstrates how to use OAuth to connect the Google Documents List Data API. |
|
Google Mail Checker Displays the number of unread messages in your Google Mail inbox. You can also click the button to open your inbox. |
|
Imageinfo Get image info for images, including EXIF data |
|
Chromium IRC App |
|
Managed Bookmarks Adds bookmarks configured by your system administrator to Chrome. |
|
Mappy Finds addresses in the web page you're on and pops up a map window. |
|
Google Maps |
|
News Reader (by Google) Displays the latest stories from Google News in a popup. |
|
News Reader Displays the first 5 items from the 'Google News - top news' RSS feed in a popup. |
|
News Reader Displays the first 5 items from the ' Google News - top news' RSS feed in a popup. |
|
No Cookies Removes 'Cookie' and 'Set-Cookie' headers. |
|
Sample - OAuth Contacts Uses OAuth to connect to Google's contacts service and display a list of your contacts. |
|
Optional Permissions New Tab Demonstrates optional permissions in extensions |
|
Per-plugin content settings Customize your content setting for different plugins. |
|
Proxy Extension API Sample Set Chrome-specific proxies; a demonstration of Chrome's Proxy API |
|
Speak Selection Speaks the current selection out loud. |
|
Talking Alarm Clock A clock with two configurable alarms that will play a sound and speak a phrase of your choice. |
|
TTS Debug Tool for developers of Chrome TTS engine extensions to help them test their engines are implementing the API correctly. |
|
TTS Demo Demo Chrome's synthesized text-to-speech capabilities. |
|
Sandboxed Frame Demonstrate use of handlebars inside a sandboxed frame |
|
Tab Shortcuts Allows pinning and duplication of tabs via keyboard shortcuts. |
|
Event Tracking with Google Analytics A sample extension which uses Google Analytics to track usage. |
|
Broken Background Color Fix an Extension! |
|
Getting Started Example Build an Extension! |
|
Getting Started Example Build an Extension! |
|
Getting started example This extension allows the user to change the background color of the current page. |
|
Hello Extensions Base Level Extension |
|
OAuth Tutorial FriendBlock Uses OAuth to connect to Google's People API and display contacts photos. |
|
OAuth Tutorial FriendBlock Uses OAuth to connect to Google's People API and display contacts photos. |
|