scripting

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteScript

func ExecuteScript(injection ScriptInjection) (ret js.Promise[js.Array[InjectionResult]])

ExecuteScript calls the function "WEBEXT.scripting.executeScript" directly.

func FuncExecuteScript

func FuncExecuteScript() (fn js.Func[func(injection ScriptInjection) js.Promise[js.Array[InjectionResult]]])

FuncExecuteScript returns the function "WEBEXT.scripting.executeScript".

func FuncGetRegisteredContentScripts

func FuncGetRegisteredContentScripts() (fn js.Func[func(filter ContentScriptFilter) js.Promise[js.Array[RegisteredContentScript]]])

FuncGetRegisteredContentScripts returns the function "WEBEXT.scripting.getRegisteredContentScripts".

func FuncInsertCSS

func FuncInsertCSS() (fn js.Func[func(injection CSSInjection) js.Promise[js.Void]])

FuncInsertCSS returns the function "WEBEXT.scripting.insertCSS".

func FuncRegisterContentScripts

func FuncRegisterContentScripts() (fn js.Func[func(scripts js.Array[RegisteredContentScript]) js.Promise[js.Void]])

FuncRegisterContentScripts returns the function "WEBEXT.scripting.registerContentScripts".

func FuncRemoveCSS

func FuncRemoveCSS() (fn js.Func[func(injection CSSInjection) js.Promise[js.Void]])

FuncRemoveCSS returns the function "WEBEXT.scripting.removeCSS".

func FuncUnregisterContentScripts

func FuncUnregisterContentScripts() (fn js.Func[func(filter ContentScriptFilter) js.Promise[js.Void]])

FuncUnregisterContentScripts returns the function "WEBEXT.scripting.unregisterContentScripts".

func FuncUpdateContentScripts

func FuncUpdateContentScripts() (fn js.Func[func(scripts js.Array[RegisteredContentScript]) js.Promise[js.Void]])

FuncUpdateContentScripts returns the function "WEBEXT.scripting.updateContentScripts".

func GetRegisteredContentScripts

func GetRegisteredContentScripts(filter ContentScriptFilter) (ret js.Promise[js.Array[RegisteredContentScript]])

GetRegisteredContentScripts calls the function "WEBEXT.scripting.getRegisteredContentScripts" directly.

func HasFuncExecuteScript

func HasFuncExecuteScript() bool

HasFuncExecuteScript returns true if the function "WEBEXT.scripting.executeScript" exists.

func HasFuncGetRegisteredContentScripts

func HasFuncGetRegisteredContentScripts() bool

HasFuncGetRegisteredContentScripts returns true if the function "WEBEXT.scripting.getRegisteredContentScripts" exists.

func HasFuncInsertCSS

func HasFuncInsertCSS() bool

HasFuncInsertCSS returns true if the function "WEBEXT.scripting.insertCSS" exists.

func HasFuncRegisterContentScripts

func HasFuncRegisterContentScripts() bool

HasFuncRegisterContentScripts returns true if the function "WEBEXT.scripting.registerContentScripts" exists.

func HasFuncRemoveCSS

func HasFuncRemoveCSS() bool

HasFuncRemoveCSS returns true if the function "WEBEXT.scripting.removeCSS" exists.

func HasFuncUnregisterContentScripts

func HasFuncUnregisterContentScripts() bool

HasFuncUnregisterContentScripts returns true if the function "WEBEXT.scripting.unregisterContentScripts" exists.

func HasFuncUpdateContentScripts

func HasFuncUpdateContentScripts() bool

HasFuncUpdateContentScripts returns true if the function "WEBEXT.scripting.updateContentScripts" exists.

func InsertCSS

func InsertCSS(injection CSSInjection) (ret js.Promise[js.Void])

InsertCSS calls the function "WEBEXT.scripting.insertCSS" directly.

func RegisterContentScripts

func RegisterContentScripts(scripts js.Array[RegisteredContentScript]) (ret js.Promise[js.Void])

RegisterContentScripts calls the function "WEBEXT.scripting.registerContentScripts" directly.

func RemoveCSS

func RemoveCSS(injection CSSInjection) (ret js.Promise[js.Void])

RemoveCSS calls the function "WEBEXT.scripting.removeCSS" directly.

func TryExecuteScript

func TryExecuteScript(injection ScriptInjection) (ret js.Promise[js.Array[InjectionResult]], exception js.Any, ok bool)

TryExecuteScript calls the function "WEBEXT.scripting.executeScript" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryGetRegisteredContentScripts

func TryGetRegisteredContentScripts(filter ContentScriptFilter) (ret js.Promise[js.Array[RegisteredContentScript]], exception js.Any, ok bool)

TryGetRegisteredContentScripts calls the function "WEBEXT.scripting.getRegisteredContentScripts" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryInsertCSS

func TryInsertCSS(injection CSSInjection) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryInsertCSS calls the function "WEBEXT.scripting.insertCSS" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRegisterContentScripts

func TryRegisterContentScripts(scripts js.Array[RegisteredContentScript]) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRegisterContentScripts calls the function "WEBEXT.scripting.registerContentScripts" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveCSS

func TryRemoveCSS(injection CSSInjection) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveCSS calls the function "WEBEXT.scripting.removeCSS" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryUnregisterContentScripts

func TryUnregisterContentScripts(filter ContentScriptFilter) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryUnregisterContentScripts calls the function "WEBEXT.scripting.unregisterContentScripts" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryUpdateContentScripts

func TryUpdateContentScripts(scripts js.Array[RegisteredContentScript]) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryUpdateContentScripts calls the function "WEBEXT.scripting.updateContentScripts" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func UnregisterContentScripts

func UnregisterContentScripts(filter ContentScriptFilter) (ret js.Promise[js.Void])

UnregisterContentScripts calls the function "WEBEXT.scripting.unregisterContentScripts" directly.

func UpdateContentScripts

func UpdateContentScripts(scripts js.Array[RegisteredContentScript]) (ret js.Promise[js.Void])

UpdateContentScripts calls the function "WEBEXT.scripting.updateContentScripts" directly.

Types

type CSSInjection

type CSSInjection struct {
	// Target is "CSSInjection.target"
	//
	// Optional
	//
	// NOTE: Target.FFI_USE MUST be set to true to get Target used.
	Target InjectionTarget
	// Css is "CSSInjection.css"
	//
	// Optional
	Css js.String
	// Files is "CSSInjection.files"
	//
	// Optional
	Files js.Array[js.String]
	// Origin is "CSSInjection.origin"
	//
	// Optional
	Origin StyleOrigin

	FFI_USE bool
}

func (*CSSInjection) FreeMembers

func (p *CSSInjection) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (CSSInjection) FromRef

func (p CSSInjection) FromRef(ref js.Ref) CSSInjection

FromRef calls UpdateFrom and returns a CSSInjection with all fields set.

func (CSSInjection) New

func (p CSSInjection) New() js.Ref

New creates a new CSSInjection in the application heap.

func (*CSSInjection) Update

func (p *CSSInjection) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*CSSInjection) UpdateFrom

func (p *CSSInjection) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type CSSInjectionCallback

type CSSInjectionCallback[T any] struct {
	Fn  func(arg T, this js.Ref) js.Ref
	Arg T
}

func (*CSSInjectionCallback[T]) DispatchCallback

func (cb *CSSInjectionCallback[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*CSSInjectionCallback[T]) Register

func (cb *CSSInjectionCallback[T]) Register() js.Func[func()]

type CSSInjectionCallbackFunc

type CSSInjectionCallbackFunc func(this js.Ref) js.Ref

func (CSSInjectionCallbackFunc) DispatchCallback

func (fn CSSInjectionCallbackFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (CSSInjectionCallbackFunc) Register

func (fn CSSInjectionCallbackFunc) Register() js.Func[func()]

type ContentScriptFilter

type ContentScriptFilter struct {
	// Ids is "ContentScriptFilter.ids"
	//
	// Optional
	Ids js.Array[js.String]

	FFI_USE bool
}

func (*ContentScriptFilter) FreeMembers

func (p *ContentScriptFilter) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (ContentScriptFilter) FromRef

FromRef calls UpdateFrom and returns a ContentScriptFilter with all fields set.

func (ContentScriptFilter) New

func (p ContentScriptFilter) New() js.Ref

New creates a new ContentScriptFilter in the application heap.

func (*ContentScriptFilter) Update

func (p *ContentScriptFilter) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*ContentScriptFilter) UpdateFrom

func (p *ContentScriptFilter) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type ExecutionWorld

type ExecutionWorld uint32
const (
	ExecutionWorld_ISOLATED ExecutionWorld
	ExecutionWorld_MAIN
)

func (ExecutionWorld) FromRef

func (ExecutionWorld) FromRef(str js.Ref) ExecutionWorld

func (ExecutionWorld) String

func (x ExecutionWorld) String() (string, bool)

type GetRegisteredContentScriptsCallback

type GetRegisteredContentScriptsCallback[T any] struct {
	Fn  func(arg T, this js.Ref, scripts js.Array[RegisteredContentScript]) js.Ref
	Arg T
}

func (*GetRegisteredContentScriptsCallback[T]) DispatchCallback

func (cb *GetRegisteredContentScriptsCallback[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*GetRegisteredContentScriptsCallback[T]) Register

func (cb *GetRegisteredContentScriptsCallback[T]) Register() js.Func[func(scripts js.Array[RegisteredContentScript])]

type GetRegisteredContentScriptsCallbackFunc

type GetRegisteredContentScriptsCallbackFunc func(this js.Ref, scripts js.Array[RegisteredContentScript]) js.Ref

func (GetRegisteredContentScriptsCallbackFunc) DispatchCallback

func (fn GetRegisteredContentScriptsCallbackFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (GetRegisteredContentScriptsCallbackFunc) Register

type InjectedFunction

type InjectedFunction[T any] struct {
	Fn  func(arg T, this js.Ref) js.Ref
	Arg T
}

func (*InjectedFunction[T]) DispatchCallback

func (cb *InjectedFunction[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*InjectedFunction[T]) Register

func (cb *InjectedFunction[T]) Register() js.Func[func()]

type InjectedFunctionFunc

type InjectedFunctionFunc func(this js.Ref) js.Ref

func (InjectedFunctionFunc) DispatchCallback

func (fn InjectedFunctionFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (InjectedFunctionFunc) Register

func (fn InjectedFunctionFunc) Register() js.Func[func()]

type InjectionResult

type InjectionResult struct {
	// Result is "InjectionResult.result"
	//
	// Optional
	Result js.Any
	// FrameId is "InjectionResult.frameId"
	//
	// Optional
	//
	// NOTE: FFI_USE_FrameId MUST be set to true to make this field effective.
	FrameId int32
	// DocumentId is "InjectionResult.documentId"
	//
	// Optional
	DocumentId js.String

	FFI_USE_FrameId bool // for FrameId.

	FFI_USE bool
}

func (*InjectionResult) FreeMembers

func (p *InjectionResult) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (InjectionResult) FromRef

func (p InjectionResult) FromRef(ref js.Ref) InjectionResult

FromRef calls UpdateFrom and returns a InjectionResult with all fields set.

func (InjectionResult) New

func (p InjectionResult) New() js.Ref

New creates a new InjectionResult in the application heap.

func (*InjectionResult) Update

func (p *InjectionResult) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*InjectionResult) UpdateFrom

func (p *InjectionResult) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type InjectionTarget

type InjectionTarget struct {
	// TabId is "InjectionTarget.tabId"
	//
	// Optional
	//
	// NOTE: FFI_USE_TabId MUST be set to true to make this field effective.
	TabId int32
	// FrameIds is "InjectionTarget.frameIds"
	//
	// Optional
	FrameIds js.Array[int32]
	// DocumentIds is "InjectionTarget.documentIds"
	//
	// Optional
	DocumentIds js.Array[js.String]
	// AllFrames is "InjectionTarget.allFrames"
	//
	// Optional
	//
	// NOTE: FFI_USE_AllFrames MUST be set to true to make this field effective.
	AllFrames bool

	FFI_USE_TabId     bool // for TabId.
	FFI_USE_AllFrames bool // for AllFrames.

	FFI_USE bool
}

func (*InjectionTarget) FreeMembers

func (p *InjectionTarget) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (InjectionTarget) FromRef

func (p InjectionTarget) FromRef(ref js.Ref) InjectionTarget

FromRef calls UpdateFrom and returns a InjectionTarget with all fields set.

func (InjectionTarget) New

func (p InjectionTarget) New() js.Ref

New creates a new InjectionTarget in the application heap.

func (*InjectionTarget) Update

func (p *InjectionTarget) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*InjectionTarget) UpdateFrom

func (p *InjectionTarget) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type Properties

type Properties struct {
	// contains filtered or unexported fields
}

func (Properties) Free

func (this Properties) Free()

func (Properties) FromRef

func (this Properties) FromRef(ref js.Ref) Properties

func (Properties) FuncGlobalParams

func (this Properties) FuncGlobalParams() (fn js.Func[func() int32])

FuncGlobalParams returns the static method "Properties.globalParams".

func (Properties) GlobalParams

func (this Properties) GlobalParams() (ret int32)

GlobalParams calls the static method "Properties.globalParams".

func (Properties) HasFuncGlobalParams

func (this Properties) HasFuncGlobalParams() bool

HasFuncGlobalParams returns true if the static method "Properties.globalParams" exists.

func (Properties) Once

func (this Properties) Once() Properties

func (Properties) Ref

func (this Properties) Ref() js.Ref

func (Properties) TryGlobalParams

func (this Properties) TryGlobalParams() (ret int32, exception js.Any, ok bool)

TryGlobalParams calls the static method "Properties.globalParams" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

type RegisterContentScriptsCallback

type RegisterContentScriptsCallback[T any] struct {
	Fn  func(arg T, this js.Ref) js.Ref
	Arg T
}

func (*RegisterContentScriptsCallback[T]) DispatchCallback

func (cb *RegisterContentScriptsCallback[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*RegisterContentScriptsCallback[T]) Register

func (cb *RegisterContentScriptsCallback[T]) Register() js.Func[func()]

type RegisterContentScriptsCallbackFunc

type RegisterContentScriptsCallbackFunc func(this js.Ref) js.Ref

func (RegisterContentScriptsCallbackFunc) DispatchCallback

func (fn RegisterContentScriptsCallbackFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (RegisterContentScriptsCallbackFunc) Register

func (fn RegisterContentScriptsCallbackFunc) Register() js.Func[func()]

type RegisteredContentScript

type RegisteredContentScript struct {
	// Id is "RegisteredContentScript.id"
	//
	// Optional
	Id js.String
	// Matches is "RegisteredContentScript.matches"
	//
	// Optional
	Matches js.Array[js.String]
	// ExcludeMatches is "RegisteredContentScript.excludeMatches"
	//
	// Optional
	ExcludeMatches js.Array[js.String]
	// Css is "RegisteredContentScript.css"
	//
	// Optional
	Css js.Array[js.String]
	// Js is "RegisteredContentScript.js"
	//
	// Optional
	Js js.Array[js.String]
	// AllFrames is "RegisteredContentScript.allFrames"
	//
	// Optional
	//
	// NOTE: FFI_USE_AllFrames MUST be set to true to make this field effective.
	AllFrames bool
	// MatchOriginAsFallback is "RegisteredContentScript.matchOriginAsFallback"
	//
	// Optional
	//
	// NOTE: FFI_USE_MatchOriginAsFallback MUST be set to true to make this field effective.
	MatchOriginAsFallback bool
	// RunAt is "RegisteredContentScript.runAt"
	//
	// Optional
	RunAt extensiontypes.RunAt
	// PersistAcrossSessions is "RegisteredContentScript.persistAcrossSessions"
	//
	// Optional
	//
	// NOTE: FFI_USE_PersistAcrossSessions MUST be set to true to make this field effective.
	PersistAcrossSessions bool
	// World is "RegisteredContentScript.world"
	//
	// Optional
	World ExecutionWorld

	FFI_USE_AllFrames             bool // for AllFrames.
	FFI_USE_MatchOriginAsFallback bool // for MatchOriginAsFallback.
	FFI_USE_PersistAcrossSessions bool // for PersistAcrossSessions.

	FFI_USE bool
}

func (*RegisteredContentScript) FreeMembers

func (p *RegisteredContentScript) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (RegisteredContentScript) FromRef

FromRef calls UpdateFrom and returns a RegisteredContentScript with all fields set.

func (RegisteredContentScript) New

func (p RegisteredContentScript) New() js.Ref

New creates a new RegisteredContentScript in the application heap.

func (*RegisteredContentScript) Update

func (p *RegisteredContentScript) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*RegisteredContentScript) UpdateFrom

func (p *RegisteredContentScript) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type ScriptInjection

type ScriptInjection struct {
	// Func is "ScriptInjection.func"
	//
	// Optional
	Func js.Func[func()]
	// Args is "ScriptInjection.args"
	//
	// Optional
	Args js.Array[js.Any]
	// Function is "ScriptInjection.function"
	//
	// Optional
	Function js.Func[func()]
	// Files is "ScriptInjection.files"
	//
	// Optional
	Files js.Array[js.String]
	// Target is "ScriptInjection.target"
	//
	// Optional
	//
	// NOTE: Target.FFI_USE MUST be set to true to get Target used.
	Target InjectionTarget
	// World is "ScriptInjection.world"
	//
	// Optional
	World ExecutionWorld
	// InjectImmediately is "ScriptInjection.injectImmediately"
	//
	// Optional
	//
	// NOTE: FFI_USE_InjectImmediately MUST be set to true to make this field effective.
	InjectImmediately bool

	FFI_USE_InjectImmediately bool // for InjectImmediately.

	FFI_USE bool
}

func (*ScriptInjection) FreeMembers

func (p *ScriptInjection) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (ScriptInjection) FromRef

func (p ScriptInjection) FromRef(ref js.Ref) ScriptInjection

FromRef calls UpdateFrom and returns a ScriptInjection with all fields set.

func (ScriptInjection) New

func (p ScriptInjection) New() js.Ref

New creates a new ScriptInjection in the application heap.

func (*ScriptInjection) Update

func (p *ScriptInjection) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*ScriptInjection) UpdateFrom

func (p *ScriptInjection) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type ScriptInjectionCallback

type ScriptInjectionCallback[T any] struct {
	Fn  func(arg T, this js.Ref, results js.Array[InjectionResult]) js.Ref
	Arg T
}

func (*ScriptInjectionCallback[T]) DispatchCallback

func (cb *ScriptInjectionCallback[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*ScriptInjectionCallback[T]) Register

func (cb *ScriptInjectionCallback[T]) Register() js.Func[func(results js.Array[InjectionResult])]

type ScriptInjectionCallbackFunc

type ScriptInjectionCallbackFunc func(this js.Ref, results js.Array[InjectionResult]) js.Ref

func (ScriptInjectionCallbackFunc) DispatchCallback

func (fn ScriptInjectionCallbackFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (ScriptInjectionCallbackFunc) Register

func (fn ScriptInjectionCallbackFunc) Register() js.Func[func(results js.Array[InjectionResult])]

type StyleOrigin

type StyleOrigin uint32
const (
	StyleOrigin_AUTHOR StyleOrigin
	StyleOrigin_USER
)

func (StyleOrigin) FromRef

func (StyleOrigin) FromRef(str js.Ref) StyleOrigin

func (StyleOrigin) String

func (x StyleOrigin) String() (string, bool)

type UnregisterContentScriptsCallback

type UnregisterContentScriptsCallback[T any] struct {
	Fn  func(arg T, this js.Ref) js.Ref
	Arg T
}

func (*UnregisterContentScriptsCallback[T]) DispatchCallback

func (cb *UnregisterContentScriptsCallback[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*UnregisterContentScriptsCallback[T]) Register

func (cb *UnregisterContentScriptsCallback[T]) Register() js.Func[func()]

type UnregisterContentScriptsCallbackFunc

type UnregisterContentScriptsCallbackFunc func(this js.Ref) js.Ref

func (UnregisterContentScriptsCallbackFunc) DispatchCallback

func (fn UnregisterContentScriptsCallbackFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (UnregisterContentScriptsCallbackFunc) Register

func (fn UnregisterContentScriptsCallbackFunc) Register() js.Func[func()]

type UpdateContentScriptsCallback

type UpdateContentScriptsCallback[T any] struct {
	Fn  func(arg T, this js.Ref) js.Ref
	Arg T
}

func (*UpdateContentScriptsCallback[T]) DispatchCallback

func (cb *UpdateContentScriptsCallback[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*UpdateContentScriptsCallback[T]) Register

func (cb *UpdateContentScriptsCallback[T]) Register() js.Func[func()]

type UpdateContentScriptsCallbackFunc

type UpdateContentScriptsCallbackFunc func(this js.Ref) js.Ref

func (UpdateContentScriptsCallbackFunc) DispatchCallback

func (fn UpdateContentScriptsCallbackFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (UpdateContentScriptsCallbackFunc) Register

func (fn UpdateContentScriptsCallbackFunc) Register() js.Func[func()]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL