Companion

object Companion

Functions

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of UserScript

Link copied to clipboard
fun new(source: String, injectedFrames: UserContentInjectedFrames, injectionTime: UserScriptInjectionTime, allowList: List<String>? = null, blockList: List<String>? = null): UserScript

Creates a new user script.

Link copied to clipboard
fun newForWorld(source: String, injectedFrames: UserContentInjectedFrames, injectionTime: UserScriptInjectionTime, worldName: String, allowList: List<String>? = null, blockList: List<String>? = null): UserScript

Creates a new user script for script world with name @world_name.