◐ Shell
clean mode source ↗

userScripts.ScriptSource - Mozilla | MDN

Type

Values of this type are an object containing these properties:

file Optional

string. The path of the file containing the user script code. The path is relative to the extension's root directory.

code Optional

string. JavaScript code for the user script.

file or code must be specified, not both.

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.