Greasy Fork is available in English.

GM_CORS

CORS on test drive via GM_xmlhttpRequest

Penulis
xiaopc
Pemasangan harian
0
Total pemasangan
234
Nilai
0 0 0
Versi
1.04
Dibuat
06 Maret 2023
Diperbarui
11 Maret 2023
Size
1,78 KB
Lisensi
WTFPL
Berlaku untuk

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