您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
parkour helper for miniblox.io
// ==UserScript== // @name Parkour Helper for miniblox.io // @namespace http://tampermonkey.net/ // @description parkour helper for miniblox.io // @match https://miniblox.io/ // @grant none // @license Redistribution prohibited // @version 0.0.1.20240921150824 // ==/UserScript== (function() { 'use strict'; const xpath = "/html/body/div[2]/div/div[5]/div[1]/div[2]/span[22]/span/text()[1]"; const offsetY = -260; const offsetX = 50; const centerElement = () => { const element = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; if (element) { const parent = element.parentNode; const rect = parent.getBoundingClientRect(); const viewportWidth = window.innerWidth; const viewportHeight = window.innerHeight; parent.style.position = 'absolute'; parent.style.left = `${(viewportWidth - rect.width) / 2 + offsetX}px`; parent.style.top = `${(viewportHeight - rect.height) / 2 + offsetY}px`; // remove"Rotation: " const originalText = element.textContent; const newText = originalText.replace(/Rotation: /, ''); element.textContent = newText.trim(); } }; centerElement(); const observer = new MutationObserver(centerElement); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址