https://github.com/maple3142/gmxhr-fetch
fetch-like polyfill for userscript managers
https://github.com/maple3142/gmxhr-fetch
fetch gmxhr library polyfill userscript
Last synced: 7 months ago
JSON representation
fetch-like polyfill for userscript managers
- Host: GitHub
- URL: https://github.com/maple3142/gmxhr-fetch
- Owner: maple3142
- Created: 2018-09-09T12:59:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-16T03:19:47.000Z (over 3 years ago)
- Last Synced: 2025-06-06T23:08:21.342Z (8 months ago)
- Topics: fetch, gmxhr, library, polyfill, userscript
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gmxhr-fetch
> A fetch-like polyfill for userscript managers.(TM,GM,VM)
## To use
Add the following content into your script's metablock.
```js
// @require https://unpkg.com/gmxhr-fetch
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
```
Then you can call `gmfetch` anywhere in the script just like `fetch`.
```js
gmfetch('https://example.com').then(console.log)
```