Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.41 KB

File metadata and controls

64 lines (47 loc) · 1.41 KB

GM API Types

All-in-One GM API types (Greasemonkey, Tampermonkey, Violentmonkey and etc)

Install

To install:

Bun:

bun install @toil/gm-types

NPM:

npm install @toil/gm-types

Usage

After installation add @toil/gm-types/v4 or/and @toil/gm-types/v3 to tsconfig.json

{
  "compilerOptions": {
    "types": ["@toil/gm-types/v3"]
    //...
  }
}

Supported APIs

Currently, only these APIs are supported (with their GM. alternatives):

  • GM_info
  • GM_notification
  • GM Storage (GM_getValue, GM_setValue and etc)
  • GM_addStyle
  • GM_xmlhttpRequest
  • GM_getResourceURL
  • GM_cookie

Supported Extensions

Supported userscript managers: