Skip to content

Latest commit

 

History

History
394 lines (180 loc) · 4.52 KB

kit.md

File metadata and controls

394 lines (180 loc) · 4.52 KB

Home > @holoflows/kit

kit package

A toolkit for browser extension developing.

Classes

Class

Description

EventWatcher

A Watcher based on event handlers.

IntervalWatcher

A watcher based on time interval.

LiveSelector

Create a live selector that can continuously select the element you want.

MutationObserverWatcher

A watcher based on MutationObserver

WebExtensionMessage

Abstract Classes

Abstract Class

Description

Watcher

Use LiveSelector to watch dom change

Enumerations

Enumeration

Description

Environment

Current running environment of Web Extension

MessageTarget

Functions

Function

Description

assertEnvironment(env)

Assert the current environment satisfy the expectation

assertNotEnvironment(env)

Assert the current environment NOT satisfy the rejected flags

DOMProxy(options)

DOMProxy provide an interface that be stable even dom is changed.

getEnvironment()

Get the current running environment

isEnvironment(env)

Check if the current environment satisfy the expectation

printEnvironment(e)

Print the Environment bit flag in a human-readable format

waitUntil(promise)

Interfaces

Interface

Description

DOMProxy_MutationObserver

The proxied MutationObserver. You need to set callback and init to activate it.

DOMProxy_Properties

DOMProxy provide an interface that be stable even dom is changed.

DOMProxy

DOMProxy provide an interface that be stable even dom is changed.

DOMProxyEvents

Events that DOMProxy supported

DOMProxyOptions

Options for DOMProxy

Encoder

Define the encoding of messages

WatcherEvents

WebExtensionEventTarget

WebExtensionEventTargetUnbound

WebExtensionMessageOptions

WebExtensionTargetBoundEventTarget

Namespaces

Namespace

Description

assertEnvironment

assertNotEnvironment

isEnvironment