首页 Docs Chrome Extensions 示例 Samples Explore samples from the Chrome Extension samples repository. Use these to learn how extensions work or as starting points for building your own extensions. action.disable action.enable action.getBadgeBackgroundColor action.getBadgeText action.getBadgeTextColor action.getPopup action.getTitle action.isEnabled action.onClicked action.setBadgeBackgroundColor action.setBadgeText action.setBadgeTextColor action.setIcon action.setPopup action.setTitle alarms.clear alarms.clearAll alarms.create alarms.get alarms.getAll alarms.onAlarm bookmarks.create bookmarks.getTree bookmarks.remove bookmarks.search bookmarks.update browsingData.remove commands.onCommand contextMenus.create contextMenus.onClicked contextMenus.remove cookies.getAll cookies.remove debugger.attach debugger.onEvent debugger.sendCommand declarativeNetRequest.getDynamicRules declarativeNetRequest.getMatchedRules declarativeNetRequest.isRegexSupported declarativeNetRequest.onRuleMatchedDebug declarativeNetRequest.setExtensionActionOptions declarativeNetRequest.updateDynamicRules devtools.inspectedWindow.getResources devtools.panels.create devtools.panels.elements fontSettings.clearDefaultFixedFontSize fontSettings.clearDefaultFontSize fontSettings.clearFont fontSettings.clearMinimumFontSize fontSettings.getDefaultFixedFontSize fontSettings.getDefaultFontSize fontSettings.getFont fontSettings.getFontList fontSettings.getMinimumFontSize fontSettings.onDefaultFixedFontSizeChanged fontSettings.onDefaultFontSizeChanged fontSettings.onFontChanged fontSettings.onMinimumFontSizeChanged fontSettings.setDefaultFixedFontSize fontSettings.setDefaultFontSize fontSettings.setFont fontSettings.setMinimumFontSize history.deleteAll history.deleteUrl history.getVisits history.search i18n.getMessage idle.onStateChanged idle.queryState idle.setDetectionInterval notifications.create notifications.onButtonClicked offscreen.Reason offscreen.closeDocument offscreen.createDocument omnibox.onDeleteSuggestion omnibox.onInputCancelled omnibox.onInputChanged omnibox.onInputEntered omnibox.onInputStarted omnibox.setDefaultSuggestion permissions.contains permissions.request power.releaseKeepAwake power.requestKeepAwake printing.cancelJob printing.getPrinterInfo printing.getPrinters printing.onJobStatusChanged printing.submitJob privacy.services readingList.addEntry readingList.onEntryAdded readingList.onEntryRemoved readingList.onEntryUpdated readingList.query readingList.removeEntry readingList.updateEntry runtime.OnInstalledReason runtime.connect runtime.connectNative runtime.getContexts runtime.getManifest runtime.getURL runtime.lastError runtime.onConnect runtime.onInstalled runtime.onMessage runtime.onStartup runtime.openOptionsPage runtime.sendMessage scripting.executeScript scripting.getRegisteredContentScripts scripting.insertCSS scripting.registerContentScripts scripting.removeCSS scripting.unregisterContentScripts sidePanel.getOptions sidePanel.open sidePanel.setOptions sidePanel.setPanelBehavior storage.local storage.onChanged storage.session storage.sync tabCapture.getMediaStreamId tabGroups.update tabs.captureVisibleTab tabs.create tabs.get tabs.getZoom tabs.getZoomSettings tabs.group tabs.move tabs.onActivated tabs.onAttached tabs.onCreated tabs.onDetached tabs.onMoved tabs.onRemoved tabs.onUpdated tabs.onZoomChange tabs.query tabs.remove tabs.sendMessage tabs.setZoom tabs.setZoomSettings tabs.update topSites.get userScripts.getScripts userScripts.register userScripts.update webNavigation.onCompleted webNavigation.onDOMContentLoaded webRequest.onAuthRequired windows.create windows.get windows.getAll windows.getCurrent windows.getLastFocused windows.onBoundsChanged windows.onCreated windows.onFocusChanged windows.onRemoved windows.remove windows.update activeTab alarms bookmarks browsingData clipboardWrite contentSettings contextMenus cookies debugger declarativeNetRequest declarativeNetRequestFeedback declarativeNetRequestWithHostAccess favicon fontSettings geolocation history idle nativeMessaging notifications offscreen power printing privacy readingList scripting sidePanel storage tabCapture tabGroups tabs topSites userScripts webNavigation webRequest webRequestAuthProvider