scripting.removeCSS()that provide for one-off injections.
scripting.registerContentScripts()that registers content scripts dynamically, which can then be retrieved with
scripting.getRegisteredContentScripts()and unregistered with
Note: This API is available in Manifest V3 or higher in Chrome and Firefox 101. In Safari and Firefox 102+, this API is also available in Manifest V2.
Alternatively, you can get permission temporarily in the active tab and only in response to an explicit user action, by asking for the
"activeTab" permission. However, the
"scripting" permission is still required.
Details of an injection target.
Details of a content script to be registered or that is registered.
Gets a list of registered content scripts.
Injects CSS into a page.
Registers a content script for future page loads.
Removes CSS which was previously injected into a page by a
Updates one or more content scripts already registered.
Unregisters one or more content scripts.
BCD tables only load in the browser
Note: This API is based on Chromium's