GM_fetch

fetch pollyfill using GM_xmlhttpRequest

2021/02/07のページです。最新版はこちら

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

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
nyarau
バージョン
0.0.1.20210207152600
作成日
2021/02/07
更新日
2021/02/07
大きさ
1.2KB
ライセンス
不明

(personal uses, with no guarantee what so ever)

fetch pollyfill with resp.text/resp.json/resp.blob/resp.arrayBuffer support using GM_xmlhttpRequest, not yet 100% replication of fetch API (eg. errors)

Written for / tested with TamperMonkey, may work for GeaseMonkey or others

Don't forget to add permissions

// @connect  api.example.com
// @grant    GM_xmlhttpRequest