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: Chrome restricts this API to Manifest V3. Firefox and Safari support this API in Manifest V2 and V3.
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