您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Easier jumpbox search
当前为
// ==UserScript== // @name WoD Jumpbox Enhanced // @namespace github.com/DotIN13 // @version 0.3 // @description Easier jumpbox search // @author DotIN13 // @match http://canto.world-of-dungeons.org/* // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; //styling jumpboxSelect GM_addStyle("#jumpboxSelect{width: 50px;margin-right: 20px;height: 18px;}"); //modifying tooltip var jumpboxTooltip = document.querySelector("#jumpbox_center>form>span"); jumpboxTooltip.setAttribute("onmouseover","return wodToolTip(this,'<p>键入物品、英雄等名称,<br />选择相应类别,<br />按下按钮获知详情。<br />同时兼容[*:*]类型代码。<br /><br /><i>JumpBox Enhanced by DotIN13</i></p>');") //get jumpboxSpan var jumpboxSpan = document.getElementById("jumpbox_center"); //create jumpboxSelect var jumpboxSelect = document.createElement("select"); jumpboxSelect.id = "jumpboxSelect"; jumpboxSpan.appendChild(jumpboxSelect); //add select options var itemList = ["item", "set", "hero", "player", "skill", "npc", "post", "group", "clan", "auction", "class"], itemChn = ["物品", "套装", "角色", "玩家", "技能", "NPC", "帖子", "团队", "联盟", "拍卖", "职业"]; var jumpboxSelObj = document.getElementById("jumpboxSelect"); var addItemList = function(list) { for (var i = 0; i < itemList.length; i++) { var option = document.createElement("option"); option.value = (itemList[i]); option.text = (itemChn[i]) jumpboxSelObj.add(option); } } addItemList(itemList); //reroute jumpbox Button var jumpboxBtn = document.querySelectorAll("#jumpbox_center>form>span>input"); var jumpbox = document.querySelector('#jumpbox_center>form>input[name="link"]'); jumpboxBtn[0].setAttribute("onclick", "window.jumper();return false;"); window.jumper = function() { var jumpbox = document.querySelector('#jumpbox_center>form>input[name="link"]'); var jumpboxValue = jumpbox.value; var regtest = /^\s*\[\s*([^:]+?)\s*:\s*(.+?)\s*\]\s*$/; var indicator = regtest.test(jumpboxValue); if (indicator) { wodlink(jumpboxValue); } else { var jumplink = "[" + jumpboxSelObj.value + ":" + jumpboxValue + "]"; wodlink(jumplink); } jumpbox.value = ""; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址