A shim for using GM.xmlHttpRequest with a fetch-like API.
สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/422172/903521/gmfetch.js
@require https://greasyfork.org/scripts/422172-gmfetch/code/gmfetch.js
@grant GM.xmlHttpRequest
(async () => {
// https://developer.mozilla.org/en-US/docs/Web/API/Response
const res = await gmfetch("https://google.com");
console.log(await res.text());
})();