Greasy Fork is available in English.

GM_CORS

CORS on test drive via GM_xmlhttpRequest

Autor
xiaopc
Dnevne instalacije
0
Ukupnih instalacija
234
Ocjene
0 0 0
Verzija
1.04
Stvoreno
06.03.2023.
Ažurirano
11.03.2023.
Size
1,78 KB
Licenza
WTFPL
Primjenjuje se

a fork from https://greasyfork.org/scripts/440890-cors-via-gm

features:

  • provide both xhr and fetch api for different uses
  • replace fetch api once activate manually
  • use window.xhr to get the xhr type response

to activate:

  window.addEventListener('load', () => {
    const GmCors = document.querySelector('#GmCors');
    if (GmCors) {
      GmCors.init(window);
    }
  };