Table of Contents

Class UserScript

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class UserScript : BoxedRecord, IEquatable<UserScript>
Inheritance
UserScript
Implements
Inherited Members

Constructors

UserScript(UserScriptOwnedHandle)

public UserScript(UserScriptOwnedHandle handle)

Parameters

handle UserScriptOwnedHandle

Properties

Handle

public UserScriptOwnedHandle Handle { get; }

Property Value

UserScriptOwnedHandle

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(UserScript?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(UserScript? other)

Parameters

other UserScript

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

New(string, UserContentInjectedFrames, UserScriptInjectionTime, string[]?, string[]?)

[Version("2.6")]
public static UserScript New(string source, UserContentInjectedFrames injectedFrames, UserScriptInjectionTime injectionTime, string[]? allowList, string[]? blockList)

Parameters

source string
injectedFrames UserContentInjectedFrames
injectionTime UserScriptInjectionTime
allowList string[]
blockList string[]

Returns

UserScript

NewForWorld(string, UserContentInjectedFrames, UserScriptInjectionTime, string, string[]?, string[]?)

[Version("2.22")]
public static UserScript NewForWorld(string source, UserContentInjectedFrames injectedFrames, UserScriptInjectionTime injectionTime, string worldName, string[]? allowList, string[]? blockList)

Parameters

source string
injectedFrames UserContentInjectedFrames
injectionTime UserScriptInjectionTime
worldName string
allowList string[]
blockList string[]

Returns

UserScript

Ref()

[Version("2.6")]
public UserScript Ref()

Returns

UserScript

Unref()

[Version("2.6")]
public void Unref()