OptionalargsThe arguments to curry into a provided function. This is only valid if the func parameter is specified. These arguments must be JSON-serializable.
OptionalfilesThe path of the JS files to inject, relative to the extension's root directory. Exactly one of files and func must be specified.
OptionalfuncA JavaScript function to inject. This function will be serialized, and then deserialized for injection. This means that any bound parameters and execution context will be lost. Exactly one of files and func must be specified.
OptionalinjectWhether the injection should be triggered in the target as soon as possible (but not necessarily prior to page load).
Details specifying the target into which to inject the script.
Optionalworld
Details of a script injection