您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
无剑Mud辅修,由在线版移植而来,順便《略改》
当前为
// ==UserScript== // @name 无剑Mud辅修(OL) // @description 无剑Mud辅修,由在线版移植而来,順便《略改》 // @namespace http://orchin.cn/ // @version 1.1.37 // @license MIT // @author 燕飞,东方鸣,懒人 // @match http://*.xxmud.cn/* // @match http://lib10.cn/* // @match http://orchin.cn/* // @match http://*.yytou.cn/* // @match http://*.yytou.com/* // @match http://118.178.84.7/* // @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.23.10/babel.js // @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.12.1/polyfill.js // @grant unsafeWindow // @grant GM_info // @grant GM_setValue // @grant GM_getValue // @grant GM_setClipboard // @grant GM_xmlhttpRequest // @connect update.greasyfork.org // @run-at document-end // @compatible Chrome >= 80 // @compatible Edge >= 80 // @compatible Firefox PC >= 74 // @compatible Opera >= 67 // @compatible Safari MacOS >= 13.1 // @compatible Firefox Android >= 79 // @compatible Opera Android >= 57 // @compatible Safari iOS >= 13.4 // @compatible WebView Android >= 80 // ==/UserScript== if (document.domain == "orchin.cn") { var params = new URLSearchParams(location.href.split("?")[1]); var host = params.get("ws_host"); params.delete("ws_host"); location.replace("http://" + host + "?" + params.toString()); return; } // 自定义模式开关 unsafeWindow.customMode = false; function customCode() { // 自定义代码区 } var script_url = unsafeWindow.g_version_tw ? "https://update.greasyfork.org/scripts/471563/%E6%97%A0%E5%89%91Mud%E8%BE%85%E5%8A%A9.js" : "https://update.greasyfork.org/scripts/483658/%E6%97%A0%E5%89%91Mud%E8%BE%85%E4%BF%AE.js" var api_url = unsafeWindow.g_version_tw ? "https://update.greasyfork.org/scripts/471563.json" : "https://update.greasyfork.org/scripts/483658.json" var i18n = unsafeWindow.g_version_tw ? "tw" : "cn" GM_xmlhttpRequest({ method: "GET", responseType: "json", url: api_url, onload: function (api) { if (GM_getValue(`version_${i18n}`) != JSON.parse(api.responseText)["version"]) { GM_xmlhttpRequest({ method: "GET", url: script_url, onload: function (response) { GM_setValue(`code_${i18n}`, Babel.transform("(()=>{" + response.responseText + "})()", { presets: ["es2015", "es2016", "es2017"] }).code) GM_setValue(`version_${i18n}`, JSON.parse(api.responseText)["version"]); eval(GM_getValue(`code_${i18n}`)) if (unsafeWindow.customMode) { customCode(); unsafeWindow.init(); } }, }); } else { eval(GM_getValue(`code_${i18n}`)) if (unsafeWindow.customMode) { customCode(); unsafeWindow.init(); } } }, });