Companion
object Companion
Functions
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.