gmxhr-fetch

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

Verzia zo dňa 06.10.2018. Pozri najnovšiu verziu.

Tento skript by nemal byť nainštalovaný priamo. Je to knižnica pre ďalšie skripty, ktorú by mali používať cez meta príkaz // @require https://update.greasyfork.org/scripts/372917/634485/gmxhr-fetch.js

Autor
maple3142
Verzia
0.0.1.20181006051427
Vytvorené
06.10.2018
Aktualizované
06.10.2018
Licencia
neuvedené

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)