Greasy Fork is available in English.

gmxhr-fetch

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

ของเมื่อวันที่ 06-10-2018 ดู เวอร์ชันล่าสุด

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @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)