gmxhr-fetch

A fetch-like polyfill for userscript managers.(TM,GM,VM)

As of 06.10.2018. See ბოლო ვერსია.

ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @require https://update.greasyfork.org/scripts/372917/634485/gmxhr-fetch.js.

ავტორი
maple3142
ვერსია
0.0.1.20181006051427
შექმნილია
06.10.2018
განახლებულია
06.10.2018
ლიცენზია
პ/გ

gmxhr-fetch

A fetch-like polyfill for userscript managers.(TM,GM,VM)

To use

Add the following content into your script's metablock.

// @require https://unpkg.com/gmxhr-fetch
// @grant   GM_xmlhttpRequest
// @grant   GM.xmlHttpRequest

Then you can call gmfetch anywhere in the script just like fetch.

gmfetch('https://example.com').then(console.log)