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
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(UserScript?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(UserScript? other)
Parameters
other
UserScriptAn object to compare with this object.
Returns
GetGType()
public static Type GetGType()
Returns
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
stringinjectedFrames
UserContentInjectedFramesinjectionTime
UserScriptInjectionTimeallowList
string[]blockList
string[]
Returns
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
stringinjectedFrames
UserContentInjectedFramesinjectionTime
UserScriptInjectionTimeworldName
stringallowList
string[]blockList
string[]
Returns
Ref()
[Version("2.6")]
public UserScript Ref()
Returns
Unref()
[Version("2.6")]
public void Unref()