The style origin for the injection. Defaults to 'AUTHOR'.
The JavaScript world for a script to execute within. We currently only support the 'ISOLATED' world.
Injects a script into a target context. The script will be run at document_idle.
The details of the script which to inject.
Returns all dynamically registered content scripts for this extension that match the given filter.
Optionalfilter: ContentScriptFilter
An object to filter the extension's dynamically registered scripts.
Inserts a CSS stylesheet into a target context. If multiple frames are specified, unsuccessful injections are ignored.
The details of the styles to insert.
Registers one or more content scripts for this extension.
Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered.
Removes a CSS stylesheet that was previously inserted by this extension from a target context.
The details of the styles to remove. Note that the css, files, and origin properties must exactly match the stylesheet inserted through insertCSS. Attempting to remove a non-existent stylesheet is a no-op.
Unregisters one or more content scripts for this extension.
Optionalfilter: ContentScriptFilter
If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
Updates one or more content scripts for this extension.
Contains a list of scripts to be updated. If there are errors during script parsing/file validation, or if the IDs specified do not already exist, then no scripts are updated.
Use the scripting API to execute script in different contexts.
Permissions:
scriptingNot allowed in: Content scripts, Devtools pages