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: