无剑Mud辅助

无剑Mud辅修,由在线版移植而来,順便《略改》

Από την 06/04/2024. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name              无剑Mud辅助
// @description       无剑Mud辅修,由在线版移植而来,順便《略改》
// @namespace         http://tampermonkey.net/
// @version           2.0.0
// @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/*
// @grant             unsafeWindow
// @grant             GM_info
// @grant             GM_setClipboard
// @grant             GM_xmlhttpRequest
// @connect           update.greatest.deepsurf.us
// @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
// @require https://update.greatest.deepsurf.us/scripts/445697/1244619/Greasy%20Fork%20API.js
// ==/UserScript==
(function () {
  "use strict";
  if (location.host == "orchin.cn") {
    var params = new URLSearchParams(location.href.split("?")[1]);
    var host = params.get("ws_host");
    if (!host) return;
    params["delete"]("ws_host");
    location.replace("http://" + host + "?" + params.toString());
  }

  // 自定义模式开关
  unsafeWindow.customMode = false;
  function customCode() {
    // 自定义代码区
  }
  var script_url = "https://update.greatest.deepsurf.us/scripts/491806/1355188/%E6%97%A0%E5%89%91Mud%E8%BE%85%E5%8A%A9%E4%BB%A3%E7%A2%BC.js?t=";
  var api_url = "https://update.greatest.deepsurf.us/scripts/491806.json";
  GM_xmlhttpRequest({
    method: "GET",
    url: script_url.concat(Date.now()),
    nocache: true,
    onload: function onload(response) {
      eval("(function (){" + response.responseText + "})()");
      if (unsafeWindow.customMode) {
        customCode();
        init();
      }
    }
  });/*
  $.ajax({url:script_url.concat(Date.now()), dataType: "text",crossDomain:"true", cache: false}).done(function(res) {
    eval("(function (){" + res + "})()")
    if (unsafeWindow.customMode) {
      customCode();
      unsafeWindow.init();
    }
  })*/
})();