GM XHR

jQuery AJAX wrapper for GM_xmlhttpRequest

ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @require https://update.greasyfork.org/scripts/401399/938754/GM%20XHR.js.

ავტორი
RobotOilInc
ვერსია
1.1
შექმნილია
19.04.2020
განახლებულია
08.06.2021
ლიცენზია
პ/გ

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: