// ==UserScript== // @name 跨域请求 // @namespace http://tampermonkey.net/ // @version 0.1.0 // @description 实现跨域请求 // @author share121 // @match *://*/* // @run-at document-start // @license MIT // @connect * // @grant unsafeWindow // @grant GM_xmlhttpRequest // @downloadURL none // ==/UserScript== unsafeWindow.GM_xmlhttpRequest = GM_xmlhttpRequest || GM.xmlhttpRequest;