您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Preview the area of a boss in the bossmap
当前为
// ==UserScript== // @name Preview boss area // @version 0.1 // @description Preview the area of a boss in the bossmap // @author A Meaty Alt // @include /bossmap.dfprofiler.com\/bossmap.php/ // @grant none // @namespace https://greasyfork.org/users/150647 // ==/UserScript== (function() { 'use strict'; setInterval(() => { const blocks = document.querySelectorAll(".block"); for (const block of blocks) { if (block.textContent && block.textContent.match(/\d+/) !== null) { if (block.children.length && block.children[0].tagName === "A") break; const [x, y] = block.classList[1].split("_").map((c) => c.substring(1)); block.innerHTML = `<a style="color: inherit" href="https://deadfrontier.info/w/map/images/Fairview_${x}x${y}.png">${block.innerHTML}</a>`; } } }, 1000); })();