userScripts.ScriptSource
The code or source file for a user script. This describes the object values of the "js" property inRegisteredUserScript
.
Type
Values of this type are an object containing these properties:
file
Optionalstring
. The path of the file containing the user script code. The path is relative to the extension's root directory.allFrames
Optionalcode
. JavaScript code for the user script.
file
orcode
must be specified, not both.