Greasy Fork is available in English.

GM_CORS

CORS on test drive via GM_xmlhttpRequest

लेखक
xiaopc
दैनिक इंस्टॉल
0
एकूण इंस्टॉल
234
रेटिंग
0 0 0
आवृत्ती
1.04
बनवली
2023-03-06
अपडेट केली
2023-03-11
आकार
1.78 KB
License
WTFPL
यांवर लागू होते:

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