userScripts.ScriptSource
Der Code oder die Quelldatei für ein Benutzer-Skript. Dies beschreibt die Objektwerte der Eigenschaft "js" in RegisteredUserScript
.
Typ
Werte dieses Typs sind ein Objekt, das folgende Eigenschaften enthält:
file
Optional-
string
. Der Pfad der Datei, die den Benutzer-Skriptcode enthält. Der Pfad ist relativ zum Stammverzeichnis der Erweiterung. allFrames
Optional-
code
. JavaScript-Code für das Benutzer-Skript.
file
oder code
muss angegeben werden, nicht beide.
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
ScriptSource |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.