Greasy Fork is available in English.

gmxhr-fetch

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

2018/10/22時点のページです。最新版はこちら。

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.greasyfork.org/scripts/372917/639024/gmxhr-fetch.js

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
maple3142
バージョン
0.0.1.20181022191154
作成日
2018/10/06
更新日
2018/10/22
ライセンス
不明

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)