gmfetch

A shim for using GM.xmlHttpRequest with a fetch-like API.

Este script no debería instalarse directamente. Es una biblioteca que utilizan otros scripts mediante la meta-directiva de inclusión // @require https://update.greasyforks.org/scripts/422172/903521/gmfetch.js

Autor
PotatoDiet
Versión
1.0
Creado
22/02/2021
Actualizado
22/02/2021
Tamaño
760 Bytes
Licencia
GPL-3.0

Usage

Metablock

@require https://greasyforks.org/scripts/422172-gmfetch/code/gmfetch.js
@grant   GM.xmlHttpRequest

Code

(async () => {
  // https://developer.mozilla.org/en-US/docs/Web/API/Response
  const res = await gmfetch("https://google.com");
  console.log(await res.text());
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。