你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/401399-gm-xhr,源站連結 點此以跳轉

GM XHR

jQuery AJAX wrapper for GM_xmlhttpRequest

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.org.cn/scripts/401399/938754/GM%20XHR.js

作者
RobotOilInc
版本
1.1
创建于
2020-04-19
更新于
2021-06-08
大小
2.8 KB
许可证
暂无

Allows you to use GM_xmlhttpRequest for $.ajax instead of the default XHR. This means that you can do CORS requests, as long as @connect is set properly.


How to use:

// Setup GM_XHR
$.ajaxSetup({ xhr: function() {return new GM_XHR; } });

Contributions

Original version: