All-in-One GM API types (Greasemonkey, Tampermonkey, Violentmonkey and etc)
To install:
Bun:
bun install @toil/gm-typesNPM:
npm install @toil/gm-typesAfter installation add @toil/gm-types/v4 or/and @toil/gm-types/v3 to tsconfig.json
{
"compilerOptions": {
"types": ["@toil/gm-types/v3"]
//...
}
}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 userscript managers: