Core APIs

These APIs are shared between all types of extension: content providers and plugins.

Types

Create a core.d.ts file containing the following content:

core.d.ts

Examples

User preference

Returns the user preference value from Add user configuration (optional)

Console

Fetch

Doc

Parse HTML

ChromeDP

Headless browser powered by the user's installed Chrome/Chromium binary.

CryptoJS

$habari

Filename parser

$clone

Useful for safely handling events.

$replace

The $replace function is used to overwrite properties of an object within an event.

$torrentUtils

$toString

Converts binary data to string.

$toBytes

Similar to the Web API TextEncoder.encode

$sleep

Last updated