Greasy Fork is available in English.

GM XHR

jQuery AJAX wrapper for GM_xmlhttpRequest

Dit script moet niet direct worden geïnstalleerd - het is een bibliotheek voor andere scripts om op te nemen met de meta-richtlijn // @require https://update.greasyfork.org/scripts/401399/938754/GM%20XHR.js

Maker
RobotOilInc
Versie
1.1
Gemaakt op
19-04-2020
Bijgewerkt op
08-06-2021
Licentie
N.v.t.

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: