Greasy Fork is available in English.

GM XHR

jQuery AJAX wrapper for GM_xmlhttpRequest

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.greasyfork.org/scripts/401399/938754/GM%20XHR.js

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
RobotOilInc
バージョン
1.1
作成日
2020/04/19
更新日
2021/06/08
ライセンス
不明

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: