GM_CORS

CORS on test drive via GM_xmlhttpRequest

Autor
xiaopc
Denně instalací
0
Celkem instalací
245
Hodnocení
0 0 0
Verze
1.04
Vytvořeno
06. 03. 2023
Aktualizováno
11. 03. 2023
Size
1,8 KB
Licence
WTFPL
Spustit na

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);
    }
  };