A shim for using GM.xmlHttpRequest with a fetch-like API.
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/422172-gmfetch/code/gmfetch.js?version=903521
@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());
})();