gmxhr-fetch

JSON →
library 0.1.2 ·javascript
verified Jun 7, 2026

A fetch-like polyfill for userscript managers (Tampermonkey, Greasemonkey, Violentmonkey). Version 0.1.2 provides a familiar `fetch` interface over `GM_xmlhttpRequest`, allowing userscript authors to use Promise-based HTTP requests without managing raw GM API calls. Lightweight, no external dependencies, supports typical fetch options (method, headers, body). Key differentiator: simplifies migrating from standard fetch to userscript context by mimicking the Fetch API.