package webextension_polyfill.scripting;
typedef Static = {
/**
Injects a script into a target context. The script will be run at document_idle
.
**/
function executeScript(injection:ScriptInjection):js.lib.Promise>;
/**
Inserts a CSS stylesheet into a target context. If multiple frames are specified, unsuccessful injections are ignored.
**/
function insertCSS(injection:CSSInjection):js.lib.Promise;
/**
Removes a CSS stylesheet that was previously inserted by this extension from a target context.
**/
function removeCSS(injection:CSSInjection):js.lib.Promise;
/**
Registers one or more content scripts for this extension.
**/
function registerContentScripts(scripts:Array):js.lib.Promise;
/**
Returns all dynamically registered content scripts for this extension that match the given filter.
**/
function getRegisteredContentScripts(?filter:ContentScriptFilter):js.lib.Promise>;
/**
Unregisters one or more content scripts for this extension.
**/
function unregisterContentScripts(?filter:ContentScriptFilter):js.lib.Promise;
/**
Updates one or more content scripts for this extension.
**/
function updateContentScripts(scripts:Array):js.lib.Promise;
};