# chrome-extensions-samples **Repository Path**: jishichang/chrome-extensions-samples ## Basic Information - **Project Name**: chrome-extensions-samples - **Description**: chrome-extensions-samples - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-12-17 - **Last Updated**: 2021-11-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](https://blog.chromium.org/2020/08/changes-to-chrome-app-support-timeline.html). For more information on extensions, see [Chrome Developers](https://developer.chrome.com). ## 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](https://developer.chrome.com/extensions/getstarted). Sample | Calls --- | --- [My Bookmarks](api/bookmarks/basic)
A browser action with a popup dump of all bookmarks, including search, add, edit and delete. | [Page Redder](api/browserAction/make_page_red)
Make the current page red | [Print this page](api/browserAction/print)
Adds a print button to the browser. | [A browser action which changes its icon when clicked](api/browserAction/set_icon_path)
Click browser action icon to change color! | [A browser action with a popup that changes the page color](api/browserAction/set_page_color)
Change the current page color | [BrowsingData API: Basics](api/browsingData/basic)
A trivial usage example. | [Sample Extension Commands extension](api/commands)
Press Ctrl+Shift+F to open the browser action popup, press Ctrl+Shift+Y to send an event. | [Content settings](api/contentSettings)
Shows the content settings for the current site. | [Context Menus Sample](api/contextMenus/basic)
Shows some of the features of the Context Menus API | [Context Menus Sample (with Event Page)](api/contextMenus/event_page)
Shows some of the features of the Context Menus API using an event page | [Global Google Search](api/contextMenus/global_context_search)
Use the context menu to search a different country's Google | [Cookie API Test Extension](api/cookies)
Testing Cookie API | [Live HTTP headers](api/debugger/live-headers)
Displays the live log with the http requests headers | [JavaScript pause/resume](api/debugger/pause-resume)
Pauses / resumes JavaScript execution | [Tab Flipper](api/default_command_override)
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](api/desktopCapture)
Show desktop media picker UI | [My Devices](api/deviceInfo/basic)
A browser action with a popup dump of all devices signed into the same account as the current profile. | [FirePHP for Chrome](api/devtools/network/chrome-firephp)
Extends the Developer Tools, adding support for parsing FirePHP messages from server | [Chrome Query](api/devtools/panels/chrome-query)
Extends the Developer Tools, adding a sidebar that displays the jQuery data associated with the selected DOM element. | [tabCast](api/displaySource/tabCast)
Creates a WiFi Display Session from the captured tab media stream using chrome.displaySource API. | [Document Scanning API Sample](api/document_scan)
| [Download Filename Controller](api/downloads/download_filename_controller)
Download Filename Controller | [Download Selected Links](api/downloads/download_links)
Select links on a page and download them. | [Download Manager Button](api/downloads/download_manager)
Browser Action Download Manager User Interface for Google Chrome | [Download and Open Button](api/downloads/download_open)
Download and Open Context Menu Button | [Downloads Overwrite Existing Files](api/downloads/downloads_overwrite)
All downloads overwrite existing files instead of adding ' (1)', ' (2)', etc. | [Event Page Example](api/eventPage/basic)
Demonstrates usage and features of the event page | [`extension.isAllowedFileSchemeAccess` and `extension.isAllowedIncognitoAccess` Example](api/extension/isAllowedAccess)
Demonstrates the `extension.isAllowedFileSchemeAccess` and `extesion.isAllowedIncognitoAccess` APIs | [Fake Archive Handler App](api/fileSystemProvider/archive)
Demonstrate File System Provider API usage for apps. | [File System Provider API Extension Example](api/fileSystemProvider/basic)
Demonstrate features of the API like mounting, listing directories, etc for extensions. | [Advanced Font Settings](api/fontSettings)
Customize per-script font settings. | [History Override](api/history/historyOverride)
Overrides the History Page | [Typed URL History](api/history/showHistory)
Reads your history, and shows the top ten pages you go to by typing the URL. | [CLD](api/i18n/cld)
Displays the language of a tab | [Detect Language](api/i18n/detectLanguage)
Detects up to 3 languages and their percentages of the provided string | [AcceptLanguage](api/i18n/getMessage)
Returns accept languages of the browser | [Minimal Localized Hosted App](api/i18n/localizedHostedApp)
This is the minimal set of data required to upload a localized hosted application to the web store. | [Idle - Simple Example](api/idle/idle_simple)
Demonstrates the Idle API | [Test IME](api/input.ime/basic)
A simple IME that converts all keystrokes to upper case. | [Message Timer](api/messaging/timer)
Times how long it takes to send a message to a content script and back. | [Native Messaging Example](api/nativeMessaging/app)
Send a message to a native application. | [Notification Demo](api/notifications)
Shows off desktop notifications, which are "toast" windows that pop up on the desktop. | [Omnibox New Tab Search](api/omnibox/newtab_search)
Type 'nt' plus a search term into the Omnibox to open search in new tab. | [Omnibox Example](api/omnibox/simple-example)
To use, type 'omnix' plus a search term into the Omnibox. | [Blank new tab page](api/override/blank_ntp)
Override the new tab page with a blank one | [iGoogle new tab page](api/override/override_igoogle)
Override the new tab page with iGoogle | [Page action by content](api/pageAction/pageaction_by_content)
Shows a page action for HTML pages containing a video | [Page action by URL](api/pageAction/pageaction_by_url)
Shows a page action for urls which have the letter 'g' in them. | [Animated Page Action](api/pageAction/set_icon)
This extension adds an animated browser action to the toolbar. | [Top Chrome Extension Questions](api/permissions/extension-questions)
Sample demonstration of the optional permissions API. | [Keep Awake](api/power)
Override system power-saving settings. | [Block/allow third-party cookies API example extension](api/preferences/allowThirdPartyCookies)
Sample extension which demonstrates how to access a preference. | [Block/allow referrer API example extension](api/preferences/enableReferrer)
Sample extension which demonstrates how to access a preference. | [Print Extension](api/printing)
Sends print job directly to the printers installed on the Chromebook | [Print Job History](api/printingMetrics)
Reads your print history and displays the recent print jobs. | [Process Monitor](api/processes/process_monitor)
Adds a browser action that monitors resource usage of all browser processes. | [Show Tabs in Process](api/processes/show_tabs)
Adds a browser action showing which tabs share the current tab's process. | [Stylizr](api/storage/stylizr)
Spruce up your pages with custom CSS. | [Tab Capture Example](api/tabCapture)
Capture a tab and play in a | [Tab Inspector](api/tabs/inspector)
Utility for working with the extension tabs api | [Keyboard Pin](api/tabs/pin)
Creates a keyboard shortcut (Alt + Shift + P) to toggle the pinned state of the currently selected tab | [Test Screenshot Extension](api/tabs/screenshot)
Demonstrate screenshot functionality in the chrome.tabs api. | [Tabs Zoom API Demo](api/tabs/zoom)
This extension allows the user to explore features of the new tabs zoom api. | [Top Sites](api/topsites/basic)
Shows the top sites in a browser action | [NTP prototyping extension](api/topsites/magic8ball)
extension to prototype new NTP designs | [Console TTS Engine](api/ttsEngine/console_tts_engine)
A "silent" TTS engine that prints text to a small window rather than synthesizing speech. | [Drink Water Event Popup](api/water_alarm_notification)
Demonstrates usage and features of the event page by reminding user to drink water | [WebNavigation Tech Demo](api/webNavigation/basic)
Demonstration of the WebNavigation extension API. | [Webview transparency](api/webview/capturevisibleregion)
Sample of the webview.captureVisibleRegion api | [WebView Extension Communications Demo: App](api/webview/comm_demo_app)
| [WebView Extension Communications Demo: Extension](api/webview/comm_demo_ext)
Provides content scripts to an app hosting a WebView. | [Merge Windows](api/windows/merge_windows)
Merges all of the browser's windows into the current window | [Simple Background App](apps/background-simple)
| [Calculator](apps/calculator/app)
A simple calculator. | [App Launcher](extensions/app_launcher)
Get access to your apps in a browser action | [Chromium Buildbot Monitor](extensions/buildbot)
Displays the status of the Chromium buildbot in the toolbar. Click to see more detailed status in a popup. | [Google Calendar Checker (by Google)](extensions/calendar)
Quickly see the time until your next meeting from any of your calendars. Click on the button to be taken to your calendar. | [CatBlock](extensions/catblock)
I can't has cheezburger! | [Catifier](extensions/catifier)
Moar cats! | [Chromium Search](extensions/chrome_search)
Add support to the omnibox to search the Chromium source code. | [Constant Context](extensions/constant_context)
Highlights elements with keywords on developer.chrome | [Download Images](extensions/download_images)
Displays all webpage images and allows user to download | [Email this page (by Google)](extensions/email_this_page)
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](extensions/fx)
Enjoy a more magical and immersive experience when browsing the web using the power of sound. | [Google Document List Viewer](extensions/gdocs)
Demonstrates how to use OAuth to connect the Google Documents List Data API. | [Google Mail Checker](extensions/gmail)
Displays the number of unread messages in your Google Mail inbox. You can also click the button to open your inbox. | [Imageinfo](extensions/imageinfo)
Get image info for images, including EXIF data | [Chromium IRC App](extensions/irc/app)
| [Managed Bookmarks](extensions/managed_bookmarks)
Adds bookmarks configured by your system administrator to Chrome. | [Mappy](extensions/mappy)
Finds addresses in the web page you're on and pops up a map window. | [Google Maps](extensions/maps_app)
| [News Reader (by Google)](extensions/news)
Displays the latest stories from Google News in a popup. | [News Reader](extensions/news_a11y)
Displays the first 5 items from the 'Google News - top news' RSS feed in a popup. | [News Reader](extensions/news_i18n)
Displays the first 5 items from the '$Google$ News - top news' RSS feed in a popup. | [No Cookies](extensions/no_cookies)
Removes 'Cookie' and 'Set-Cookie' headers. | [Sample - OAuth Contacts](extensions/oauth_contacts)
Uses OAuth to connect to Google's contacts service and display a list of your contacts. | [Optional Permissions New Tab](extensions/optional_permissions)
Demonstrates optional permissions in extensions | [Per-plugin content settings](extensions/plugin_settings)
Customize your content setting for different plugins. | [Proxy Extension API Sample](extensions/proxy_configuration)
Set Chrome-specific proxies; a demonstration of Chrome's Proxy API | [Speak Selection](extensions/speak_selection)
Speaks the current selection out loud. | [Talking Alarm Clock](extensions/talking_alarm_clock)
A clock with two configurable alarms that will play a sound and speak a phrase of your choice. | [TTS Debug](extensions/ttsdebug)
Tool for developers of Chrome TTS engine extensions to help them test their engines are implementing the API correctly. | [TTS Demo](extensions/ttsdemo)
Demo Chrome's synthesized text-to-speech capabilities. | [Sandboxed Frame](howto/sandbox)
Demonstrate use of handlebars inside a sandboxed frame | [Tab Shortcuts](howto/tab_shortcuts)
Allows pinning and duplication of tabs via keyboard shortcuts. | [Event Tracking with Google Analytics](tutorials/analytics)
A sample extension which uses Google Analytics to track usage. | [Broken Background Color](tutorials/broken_background_color)
Fix an Extension! | [Getting Started Example](tutorials/get_started)
Build an Extension! | [Getting Started Example](tutorials/get_started_complete)
Build an Extension! | [Getting started example](tutorials/getstarted)
This extension allows the user to change the background color of the current page. | [Hello Extensions](tutorials/hello_extensions)
Base Level Extension | [OAuth Tutorial FriendBlock](tutorials/oauth_starter)
Uses OAuth to connect to Google's People API and display contacts photos. | [OAuth Tutorial FriendBlock](tutorials/oauth_tutorial_complete)
Uses OAuth to connect to Google's People API and display contacts photos. |