版本说明
了解 Chrome 稳定版中对开发者有影响的变更。
Multiple side panels
Updated 1970年1月1日
This recipe shows how to use sidePanel.getOptions() to retrieve the current side panel and switch between side panels.
Simple Theme
Updated 1970年1月1日
Global side panel
Updated 1970年1月1日
Shows how to display the same side panel on every site using the Side Panel API.
Open extension API reference
Updated 1970年1月1日
Privacy API sample
Updated 1970年1月1日
Uses the chrome.privacy.services property to get and set privacy settings.
WebGPU Extension
Updated 1970年1月1日
Generate a red triangle with WebGPU in an extension service worker.
User Scripts API Demo
Updated 1970年1月1日
Uses the chrome.userScripts API to inject JavaScript into web pages.
Reading List API Demo
Updated 1970年1月1日
Uses the chrome.readingList API to display, update and remove reading list entries.
Service worker with push notification
Updated 1970年1月1日
Notifications API sample
Updated 1970年1月1日
Demonstrates the creation of, and interaction with, each of the notification template types.
Devtools - Chrome Query
Updated 1970年1月1日
Uses the devtools API to add a sidebar that displays the jQuery data associated with the selected DOM element.
Typed URL History
Updated 1970年1月1日
Uses the chrome.history API to display in a popup the user's most visited pages.
il8n API Example
Updated 1970年1月1日
Demonstrates the chrome.i18n API by localizing text in the extension popup.
Chromium Milestones
Updated 1970年1月1日
Shows the Chromium release milestone a given code review was merged into.
Test Screenshot Extension
Updated 1970年1月1日
Uses the chrome.tabs API to take a screenshot of the active tab.
Bookmark Viewer
Updated 1970年1月1日
Uses the chrome.bookmarks API to search through, add, and delete bookmarks from the user's bookmark tree.
No Cookies
Updated 1970年1月1日
Uses the chrome.declarativeNetRequest API to remove the "Cookie" header from requests.
Tab Inspector
Updated 1970年1月1日
Demonstrates the chrome.tabs API and the chrome.windows API by providing a user interface to manage tabs and windows.
Keyboard Pin
Updated 1970年1月1日
Uses the chrome.tabs API to toggle the pinned state of the current tab.
BrowsingData API: Basics
Updated 1970年1月1日
Uses the chrome.browsingData API to clear the user's history without requiring the user to visit the history page.
My Bookmarks
Updated 1970年1月1日
A browser action with a popup dump of all bookmarks, including search, add, edit and delete.
chrome.commands
Updated 1970年1月1日
Uses the chrome.commands API by creating a new keyboard macro for switching tabs in the browser window.
Font Settings API Sample
Updated 1970年1月1日
Demonstrates the chrome.fontSettings API by allowing users to modify the size of fonts on webpages.
Sandboxed Frame Sample
Updated 1970年1月1日
Demonstrates creation of a tab with a sandboxed iframe to which the main page passes a counter variable.
topSites API sample
Updated 1970年1月1日
Uses the chrome.topSites API to suggest which sites a user should visit.
Omnibox Simple Example
Updated 1970年1月1日
Demonstrates the "omnibox" manifest key and most members of the omnibox API.
Action API Demo
Updated 1970年1月1日
Uses the Action API to change the badge text, icon, hover text, or popup page.
Web Accessible Resources Demo
Updated 1970年1月1日
Uses the web_accessible_resources key in the manifest.json file to control access to assets within an extension.
Sandboxed Content Sample
Updated 1970年1月1日
Demonstrates creating a tab for a sandboxed iframe. The sandbox calls eval() to write HTML to its own document.
Cookie Clearer
Updated 1970年1月1日
Uses the chrome.cookies API by letting a user delete their cookies via a popup.
no-cookies Rule Manager
Updated 1970年1月1日
Demonstrates the chrome.declarativeNetRequest API by providing a UI to manipulate declarativeNetRequest rules dynamically.
Merge Windows
Updated 1970年1月1日
Uses the chrome.windows and chrome.tabs APIs to manage tabs across different windows.
File Handling Demo
Updated 1970年1月1日
Shows how to use the file_handlers manifest key with the web platform's Launch Handler API.
webRequest.onAuthRequired Demo
Updated 1970年1月1日
Demonstrates the webRequest.onAuthRequired listener to detect an authentication request and log the user into the designated site.
WASM Load Example - Helloworld (no-modules)
Updated 1970年1月1日
Shows how to use WebAssembly (WASM) in Manifest V3.
Favicon API in a popup
Updated 1970年1月1日
Demonstrates the favicon manifest permission by displaying the favicon of a url in the extension popup.
Geolocation - offscreen
Updated 1970年1月1日
Shows how to get geolocation access within a service worker.
Advanced Font Settings
Updated 1970年1月1日
Demonstrates the chrome.fontSettings API by allowing users to modify the style of displayed fonts on web pages.
Alarms API Demo
Updated 1970年1月1日
Uses the chrome.alarms API to allow the user to set alarms using an extension page.
Debugger Extension
Updated 1970年1月1日
Uses the chrome.debugger API to capture network events on web pages.
Content settings
Updated 1970年1月1日
Uses chrome.contentSettings to display the settings of a given page in the extension's popup.
Blank new tab page
Updated 1970年1月1日
Uses the "chrome_url_overrides" manifest key by replacing the user's default new tab page with a new html file.
Context Menus Sample
Updated 1970年1月1日
Uses the chrome.contextMenus API to customize the context menu.
Devtools - inspectedWindow API sample
Updated 1970年1月1日
Uses devtools.inspectedWindow to collect and use data on the resouces used in a web page.
Omnibox - New Tab Search
Updated 1970年1月1日
Demonstrates the "omnibox" manifest key and API by creating a keyword that opens a browser search in a new tab.
Favicon API in content scripts
Updated 1970年1月1日
Demonstrates fetching the favicon from www.google.com and inserting it at the top left of every page.
Tab Manager for Chrome Dev Docs
Updated 1970年1月1日
Tabs zoom API Demo
Updated 1970年1月1日
Uses the tabs.zoom API to manipulate the zoom level of the current tab.
WASM Load Example - Helloworld
Updated 1970年1月1日
Shows how to use WebAssembly (WASM) as a module in Manifest V3.
Drink Water Event Popup
Updated 1970年1月1日
Demonstrates usage and features of the event page by reminding user to drink water
Site-specific side panel
Updated 1970年1月1日
Shows how to display the side panel only on google.com using the Side Panel API.
Offscreen API - DOM Parsing
Updated 1970年1月1日
Shows how to use DOMParser in an extension service worker using the offscreen document.
MV3 Migration - content script example
Updated 1970年1月1日
Geolocation - content script
Updated 1970年1月1日
Shows how to get geolocation access within a content script.
Scripting API Demo
Updated 1970年1月1日
Uses the chrome.scripting API to inject JavaScript into web pages.
Offscreen API - Clipboard
Updated 1970年1月1日
Shows how to write a string to the system clipboard using the offscreen document.
Focus Mode
Updated 1970年1月1日
Enable focus mode on Chrome's official Extensions and Chrome Web Store documentation.
始终更新
Multiple side panels
Updated 1970年1月1日
This recipe shows how to use sidePanel.getOptions() to retrieve the current side panel and switch between side panels.
Simple Theme
Updated 1970年1月1日
Global side panel
Updated 1970年1月1日
Shows how to display the same side panel on every site using the Side Panel API.
Open extension API reference
Updated 1970年1月1日
Privacy API sample
Updated 1970年1月1日
Uses the chrome.privacy.services property to get and set privacy settings.
WebGPU Extension
Updated 1970年1月1日
Generate a red triangle with WebGPU in an extension service worker.
User Scripts API Demo
Updated 1970年1月1日
Uses the chrome.userScripts API to inject JavaScript into web pages.
Reading List API Demo
Updated 1970年1月1日
Uses the chrome.readingList API to display, update and remove reading list entries.
Service worker with push notification
Updated 1970年1月1日
Notifications API sample
Updated 1970年1月1日
Demonstrates the creation of, and interaction with, each of the notification template types.
Devtools - Chrome Query
Updated 1970年1月1日
Uses the devtools API to add a sidebar that displays the jQuery data associated with the selected DOM element.
Typed URL History
Updated 1970年1月1日
Uses the chrome.history API to display in a popup the user's most visited pages.
il8n API Example
Updated 1970年1月1日
Demonstrates the chrome.i18n API by localizing text in the extension popup.
Chromium Milestones
Updated 1970年1月1日
Shows the Chromium release milestone a given code review was merged into.
Test Screenshot Extension
Updated 1970年1月1日
Uses the chrome.tabs API to take a screenshot of the active tab.
Bookmark Viewer
Updated 1970年1月1日
Uses the chrome.bookmarks API to search through, add, and delete bookmarks from the user's bookmark tree.
No Cookies
Updated 1970年1月1日
Uses the chrome.declarativeNetRequest API to remove the "Cookie" header from requests.
Tab Inspector
Updated 1970年1月1日
Demonstrates the chrome.tabs API and the chrome.windows API by providing a user interface to manage tabs and windows.
Keyboard Pin
Updated 1970年1月1日
Uses the chrome.tabs API to toggle the pinned state of the current tab.
BrowsingData API: Basics
Updated 1970年1月1日
Uses the chrome.browsingData API to clear the user's history without requiring the user to visit the history page.
My Bookmarks
Updated 1970年1月1日
A browser action with a popup dump of all bookmarks, including search, add, edit and delete.
chrome.commands
Updated 1970年1月1日
Uses the chrome.commands API by creating a new keyboard macro for switching tabs in the browser window.
Font Settings API Sample
Updated 1970年1月1日
Demonstrates the chrome.fontSettings API by allowing users to modify the size of fonts on webpages.
Sandboxed Frame Sample
Updated 1970年1月1日
Demonstrates creation of a tab with a sandboxed iframe to which the main page passes a counter variable.
topSites API sample
Updated 1970年1月1日
Uses the chrome.topSites API to suggest which sites a user should visit.
Omnibox Simple Example
Updated 1970年1月1日
Demonstrates the "omnibox" manifest key and most members of the omnibox API.
Action API Demo
Updated 1970年1月1日
Uses the Action API to change the badge text, icon, hover text, or popup page.
Web Accessible Resources Demo
Updated 1970年1月1日
Uses the web_accessible_resources key in the manifest.json file to control access to assets within an extension.
Sandboxed Content Sample
Updated 1970年1月1日
Demonstrates creating a tab for a sandboxed iframe. The sandbox calls eval() to write HTML to its own document.
Cookie Clearer
Updated 1970年1月1日
Uses the chrome.cookies API by letting a user delete their cookies via a popup.
no-cookies Rule Manager
Updated 1970年1月1日
Demonstrates the chrome.declarativeNetRequest API by providing a UI to manipulate declarativeNetRequest rules dynamically.
Merge Windows
Updated 1970年1月1日
Uses the chrome.windows and chrome.tabs APIs to manage tabs across different windows.
File Handling Demo
Updated 1970年1月1日
Shows how to use the file_handlers manifest key with the web platform's Launch Handler API.
webRequest.onAuthRequired Demo
Updated 1970年1月1日
Demonstrates the webRequest.onAuthRequired listener to detect an authentication request and log the user into the designated site.
WASM Load Example - Helloworld (no-modules)
Updated 1970年1月1日
Shows how to use WebAssembly (WASM) in Manifest V3.
Favicon API in a popup
Updated 1970年1月1日
Demonstrates the favicon manifest permission by displaying the favicon of a url in the extension popup.
Geolocation - offscreen
Updated 1970年1月1日
Shows how to get geolocation access within a service worker.
Advanced Font Settings
Updated 1970年1月1日
Demonstrates the chrome.fontSettings API by allowing users to modify the style of displayed fonts on web pages.
Alarms API Demo
Updated 1970年1月1日
Uses the chrome.alarms API to allow the user to set alarms using an extension page.
Debugger Extension
Updated 1970年1月1日
Uses the chrome.debugger API to capture network events on web pages.
Content settings
Updated 1970年1月1日
Uses chrome.contentSettings to display the settings of a given page in the extension's popup.
Blank new tab page
Updated 1970年1月1日
Uses the "chrome_url_overrides" manifest key by replacing the user's default new tab page with a new html file.
Context Menus Sample
Updated 1970年1月1日
Uses the chrome.contextMenus API to customize the context menu.
Devtools - inspectedWindow API sample
Updated 1970年1月1日
Uses devtools.inspectedWindow to collect and use data on the resouces used in a web page.
Omnibox - New Tab Search
Updated 1970年1月1日
Demonstrates the "omnibox" manifest key and API by creating a keyword that opens a browser search in a new tab.
Favicon API in content scripts
Updated 1970年1月1日
Demonstrates fetching the favicon from www.google.com and inserting it at the top left of every page.
Tab Manager for Chrome Dev Docs
Updated 1970年1月1日
Tabs zoom API Demo
Updated 1970年1月1日
Uses the tabs.zoom API to manipulate the zoom level of the current tab.
WASM Load Example - Helloworld
Updated 1970年1月1日
Shows how to use WebAssembly (WASM) as a module in Manifest V3.
Drink Water Event Popup
Updated 1970年1月1日
Demonstrates usage and features of the event page by reminding user to drink water
Site-specific side panel
Updated 1970年1月1日
Shows how to display the side panel only on google.com using the Side Panel API.
Offscreen API - DOM Parsing
Updated 1970年1月1日
Shows how to use DOMParser in an extension service worker using the offscreen document.
MV3 Migration - content script example
Updated 1970年1月1日
Geolocation - content script
Updated 1970年1月1日
Shows how to get geolocation access within a content script.
Scripting API Demo
Updated 1970年1月1日
Uses the chrome.scripting API to inject JavaScript into web pages.
Offscreen API - Clipboard
Updated 1970年1月1日
Shows how to write a string to the system clipboard using the offscreen document.
Focus Mode
Updated 1970年1月1日
Enable focus mode on Chrome's official Extensions and Chrome Web Store documentation.