重置
横排
竖排
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
WebExtensions
Add_a_button_to_the_toolbar
Anatomy_of_a_WebExtension
API
Background_scripts
Browser_compatibility_for_manifest.json
Browser_support_for_JavaScript_APIs
Build_a_cross_browser_extension
Chrome_incompatibilities
Content_scripts
Content_Security_Policy
Differences_between_API_implementations
Examples
Extending_the_developer_tools
Implement_a_settings_page
Interact_with_the_clipboard
Intercept_HTTP_requests
Internationalization
manifest.json
Match_patterns
Modify_a_web_page
Native_manifests
Native_messaging
Safely_inserting_external_content_into_a_page
Sharing_objects_with_page_scripts
User_actions
user_interface
What_are_WebExtensions
What_next
Work_with_contextual_identities
Work_with_the_Bookmarks_API
Work_with_the_Cookies_API
Working_with_files
Working_with_the_Tabs_API
Your_first_WebExtension
Your_second_WebExtension
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Add_a_button_to_the_toolbar
Add_a_button_to_the_toolbar
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Anatomy_of_a_WebExtension
Anatomy_of_a_WebExtension
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
API
action
alarms
bookmarks
browserAction
browserSettings
browsingData
captivePortal
clipboard
commands
contentScripts
contextualIdentities
cookies
declarativeNetRequest
devtools
dns
dom
downloads
events
extension
extensionTypes
find
history
i18n
identity
idle
management
menus
notifications
omnibox
pageAction
permissions
pkcs11
privacy
proxy
runtime
scripting
search
sessions
sidebarAction
storage
tabs
theme
topSites
types
userScripts
webNavigation
webRequest
windows
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
action
action
ColorArray
disable
enable
getBadgeBackgroundColor
getBadgeText
getBadgeTextColor
getPopup
getTitle
getUserSettings
ImageDataType
isEnabled
onClicked
openPopup
setBadgeBackgroundColor
setBadgeText
setBadgeTextColor
setIcon
setPopup
setTitle
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
alarms
alarms
Alarm
clear
clearAll
create
get
getAll
onAlarm
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
bookmarks
bookmarks
BookmarkTreeNode
BookmarkTreeNodeType
BookmarkTreeNodeUnmodifiable
create
CreateDetails
get
getChildren
getRecent
getSubTree
getTree
move
onChanged
onChildrenReordered
onCreated
onImportBegan
onImportEnded
onMoved
onRemoved
remove
removeTree
search
update
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
browserAction
browserAction
ColorArray
disable
enable
getBadgeBackgroundColor
getBadgeText
getBadgeTextColor
getPopup
getTitle
getUserSettings
ImageDataType
isEnabled
onClicked
openPopup
setBadgeBackgroundColor
setBadgeText
setBadgeTextColor
setIcon
setPopup
setTitle
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
browserSettings
browserSettings
allowPopupsForUserEvents
cacheEnabled
closeTabsByDoubleClick
colorManagement
contextMenuShowEvent
ftpProtocolEnabled
homepageOverride
imageAnimationBehavior
newTabPageOverride
newTabPosition
openBookmarksInNewTabs
openSearchResultsInNewTabs
openUrlbarResultsInNewTabs
overrideContentColorScheme
overrideDocumentColors
tlsVersionRestrictionConfig
useDocumentFonts
webNotificationsDisabled
zoomFullPage
zoomSiteSpecific
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
browsingData
browsingData
DataTypeSet
RemovalOptions
remove
removeCache
removeCookies
removeDownloads
removeFormData
removeHistory
removeLocalStorage
removePasswords
removePluginData
settings
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
captivePortal
captivePortal
canonicalURL
getLastChecked
getState
onConnectivityAvailable
onStateChanged
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
clipboard
clipboard
setImageData
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
commands
commands
Command
getAll
onChanged
onCommand
reset
update
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
contentScripts
contentScripts
register
RegisteredContentScript
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
contentScripts
/
RegisteredContentScript
RegisteredContentScript
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
contextualIdentities
contextualIdentities
ContextualIdentity
create
get
move
onCreated
onRemoved
onUpdated
query
remove
update
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
cookies
cookies
Cookie
CookieStore
get
getAll
getAllCookieStores
onChanged
OnChangedCause
remove
SameSiteStatus
set
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
declarativeNetRequest
declarativeNetRequest
DYNAMIC_RULESET_ID
getAvailableStaticRuleCount
getDisabledRuleIds
getDynamicRules
getEnabledRulesets
getMatchedRules
GETMATCHEDRULES_QUOTA_INTERVAL
getSessionRules
GUARANTEED_MINIMUM_STATIC_RULES
isRegexSupported
MatchedRule
MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL
MAX_NUMBER_OF_DISABLED_STATIC_RULES
MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES
MAX_NUMBER_OF_DYNAMIC_RULES
MAX_NUMBER_OF_ENABLED_STATIC_RULESETS
MAX_NUMBER_OF_REGEX_RULES
MAX_NUMBER_OF_SESSION_RULES
MAX_NUMBER_OF_STATIC_RULESETS
ModifyHeaderInfo
onRuleMatchedDebug
redirect
Redirect
ResourceType
Rule
RuleAction
RuleCondition
SESSION_RULESET_ID
setExtensionActionOptions
testMatchOutcome
updateDynamicRules
updateEnabledRulesets
updateSessionRules
updateStaticRules
URLTransform
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
devtools
devtools
inspectedWindow
network
panels
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
devtools
/
inspectedWindow
inspectedWindow
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
devtools
/
network
network
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
devtools
/
panels
panels
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
dns
dns
resolve
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
dom
dom
openOrClosedShadowRoot
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
downloads
downloads
acceptDanger
BooleanDelta
cancel
DangerType
DoubleDelta
download
DownloadItem
DownloadQuery
DownloadTime
erase
FilenameConflictAction
getFileIcon
InterruptReason
onChanged
onCreated
onErased
open
pause
removeFile
resume
search
setShelfEnabled
show
showDefaultFolder
State
StringDelta
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
events
events
Event
Rule
UrlFilter
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
events
/
Event
Event
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
extension
extension
getBackgroundPage
getExtensionTabs
getURL
getViews
inIncognitoContext
isAllowedFileSchemeAccess
isAllowedIncognitoAccess
lastError
onRequest
onRequestExternal
sendRequest
setUpdateUrlData
ViewType
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
extensionTypes
extensionTypes
ImageDetails
ImageFormat
InjectDetails
RunAt
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
find
find
find
highlightResults
removeHighlighting
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
find
/
find
find
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
history
history
addUrl
deleteAll
deleteRange
deleteUrl
getVisits
HistoryItem
onTitleChanged
onVisited
onVisitRemoved
search
TransitionType
VisitItem
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
i18n
i18n
detectLanguage
getAcceptLanguages
getMessage
getUILanguage
LanguageCode
Locale-Specific_Message_reference
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
identity
identity
getRedirectURL
launchWebAuthFlow
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
idle
idle
IdleState
onStateChanged
queryState
setDetectionInterval
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
management
management
ExtensionInfo
get
getAll
getPermissionWarningsById
getPermissionWarningsByManifest
getSelf
install
onDisabled
onEnabled
onInstalled
onUninstalled
setEnabled
uninstall
uninstallSelf
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
menus
menus
ACTION_MENU_TOP_LEVEL_LIMIT
ContextType
create
getTargetElement
ItemType
OnClickData
onClicked
onHidden
onShown
overrideContext
refresh
remove
removeAll
update
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
notifications
notifications
clear
create
getAll
NotificationOptions
onButtonClicked
onClicked
onClosed
onShown
TemplateType
update
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
omnibox
omnibox
onDeleteSuggestion
onInputCancelled
onInputChanged
onInputEntered
OnInputEnteredDisposition
onInputStarted
setDefaultSuggestion
SuggestResult
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
pageAction
pageAction
getPopup
getTitle
hide
ImageDataType
isShown
onClicked
openPopup
setIcon
setPopup
setTitle
show
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
permissions
permissions
contains
getAll
onAdded
onRemoved
Permissions
remove
request
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
pkcs11
pkcs11
getModuleSlots
installModule
isModuleInstalled
uninstallModule
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
privacy
privacy
network
services
websites
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
proxy
proxy
onError
onRequest
ProxyInfo
RequestDetails
settings
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
runtime
runtime
connect
connectNative
getBackgroundPage
getBrowserInfo
getContexts
getFrameId
getManifest
getPackageDirectoryEntry
getPlatformInfo
getURL
id
lastError
MessageSender
onBrowserUpdateAvailable
onConnect
onConnectExternal
onInstalled
OnInstalledReason
onMessage
onMessageExternal
onPerformanceWarning
OnPerformanceWarningCategory
OnPerformanceWarningSeverity
onRestartRequired
OnRestartRequiredReason
onStartup
onSuspend
onSuspendCanceled
onUpdateAvailable
openOptionsPage
PlatformArch
PlatformInfo
PlatformNaclArch
PlatformOs
Port
reload
requestUpdateCheck
RequestUpdateCheckStatus
sendMessage
sendNativeMessage
setUninstallURL
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
scripting
scripting
ContentScriptFilter
executeScript
ExecutionWorld
getRegisteredContentScripts
InjectionTarget
insertCSS
registerContentScripts
RegisteredContentScript
removeCSS
unregisterContentScripts
updateContentScripts
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
search
search
get
query
search
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
sessions
sessions
Filter
forgetClosedTab
forgetClosedWindow
getRecentlyClosed
getTabValue
getWindowValue
MAX_SESSION_RESULTS
onChanged
removeTabValue
removeWindowValue
restore
Session
setTabValue
setWindowValue
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
sidebarAction
sidebarAction
close
getPanel
getTitle
ImageDataType
isOpen
open
setIcon
setPanel
setTitle
toggle
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
storage
storage
local
managed
onChanged
session
StorageArea.1
StorageChange
sync
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
storage
/
StorageArea
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
tabs
tabs
captureTab
captureVisibleTab
connect
create
detectLanguage
discard
duplicate
executeScript
get
getAllInWindow
getCurrent
getSelected
getZoom
getZoomSettings
goBack
goForward
hide
highlight
insertCSS
move
moveInSuccession
MutedInfo
MutedInfoReason
onActivated
onActiveChanged
onAttached
onCreated
onDetached
onHighlightChanged
onHighlighted
onMoved
onRemoved
onReplaced
onSelectionChanged
onUpdated
onZoomChange
PageSettings
print
printPreview
query
reload
remove
removeCSS
saveAsPDF
sendMessage
sendRequest
setZoom
setZoomSettings
show
Tab
TAB_ID_NONE
TabStatus
toggleReaderMode
update
warmup
WindowType
ZoomSettings
ZoomSettingsMode
ZoomSettingsScope
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
theme
theme
getCurrent
onUpdated
reset
Theme
update
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
topSites
topSites
get
MostVisitedURL
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
types
types
BrowserSetting
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
types
/
BrowserSetting
BrowserSetting
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
userScripts
userScripts
onBeforeScript
register
RegisteredUserScript
UserScriptOptions
Working_with_userScripts
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
userScripts
/
RegisteredUserScript
RegisteredUserScript
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
userScripts
/
Working_with_userScripts
Working_with_userScripts
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
webNavigation
webNavigation
getAllFrames
getFrame
onBeforeNavigate
onCommitted
onCompleted
onCreatedNavigationTarget
onDOMContentLoaded
onErrorOccurred
onHistoryStateUpdated
onReferenceFragmentUpdated
onTabReplaced
TransitionQualifier
TransitionType
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
webRequest
webRequest
BlockingResponse
CertificateInfo
filterResponseData
getSecurityInfo
handlerBehaviorChanged
HttpHeaders
MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES
onAuthRequired
onBeforeRedirect
onBeforeRequest
onBeforeSendHeaders
onCompleted
onErrorOccurred
onHeadersReceived
onResponseStarted
onSendHeaders
RequestFilter
ResourceType
SecurityInfo
StreamFilter
UploadData
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
webRequest
/
StreamFilter
StreamFilter
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
API
/
windows
windows
create
CreateType
get
getAll
getCurrent
getLastFocused
onBoundsChanged
onCreated
onFocusChanged
onRemoved
remove
update
Window
WINDOW_ID_CURRENT
WINDOW_ID_NONE
WindowState
WindowType
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Background_scripts
Background_scripts
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Extending_the_developer_tools
Extending_the_developer_tools
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Intercept_HTTP_requests
Intercept_HTTP_requests
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
manifest.json
manifest.json
action
author
background
browser_action
browser_specific_settings
chrome_settings_overrides
chrome_url_overrides
commands
content_scripts
content_security_policy
declarative_net_request
default_locale
description
developer
devtools_page
dictionaries
externally_connectable
homepage_url
host_permissions
icons
incognito
manifest_version
name
offline_enabled
omnibox
optional_host_permissions
optional_permissions
options_page
options_ui
page_action
permissions
protocol_handlers
short_name
sidebar_action
storage
theme
theme_experiment
user_scripts
version
version_name
web_accessible_resources
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
manifest.json
/
theme
theme
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
manifest.json
/
theme_experiment
theme_experiment
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
manifest.json
/
version
version
format
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Modify_a_web_page
Modify_a_web_page
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Native_messaging
Native_messaging
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
user_interface
Browser_styles
Context_menu_items
devtools_panels
Extension_pages
Notifications
Omnibox
Options_pages
Page_actions
Popups
Sidebars
Toolbar_button
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Context_menu_items
Context_menu_items
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
devtools_panels
devtools_panels
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Extension_pages
Extension_pages
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Notifications
Notifications
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Omnibox
Omnibox
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Page_actions
Page_actions
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Popups
Popups
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Sidebars
Sidebars
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
user_interface
/
Toolbar_button
Toolbar_button
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
What_are_WebExtensions
What_are_WebExtensions
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Working_with_the_Tabs_API
Working_with_the_Tabs_API
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Your_first_WebExtension
Your_first_WebExtension
/
mdn2
/
en-US
/
docs
/
Mozilla
/
Add-ons
/
WebExtensions
/
Your_second_WebExtension
Your_second_WebExtension