Greasy Fork is available in English.

给予页面具有跨域能力的 XMLHttpRequest

给你的页面添加具有跨域能力的 XMLHttpRequest

// ==UserScript==
// @name         给予页面具有跨域能力的 XMLHttpRequest
// @namespace    https://www.qs5.org/?cross-domain-xhr2
// @version      0.1
// @description  给你的页面添加具有跨域能力的 XMLHttpRequest
// @author       ImDong
// @include      *
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @grant        GM_registerMenuCommand
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';
    if (typeof unsafeWindow.setCrossDomainXMLHttpRequest == "function") {
        unsafeWindow.setCrossDomainXMLHttpRequest(GM_xmlhttpRequest);
    }
})();