UserScript

class UserScript(val webkitUserScriptPointer: <Error class: unknown class><<Error class: unknown class>>)(source)

A JavaScript snippet which can be injected in loaded pages.

Since

2.6

Constructors

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

Creates a new user script.

constructor(source: String, injectedFrames: UserContentInjectedFrames, injectionTime: UserScriptInjectionTime, worldName: String, allowList: List<String>? = null, blockList: List<String>? = null)

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

constructor(webkitUserScriptPointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitUserScriptPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Atomically increments the reference count of @user_script by one.

Link copied to clipboard
fun unref()

Atomically decrements the reference count of @user_script by one.