Greasy Fork 支持简体中文。

GM_CORS

CORS on test drive via GM_xmlhttpRequest

作者
xiaopc
今日安裝
0
安裝總數
234
評價
0 0 0
版本
1.04
建立日期
2023-03-06
更新日期
2023-03-11
尺寸
1.8 KB
授權條款
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);
    }
  };