您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a line indicating the weapon direction in BattleDudes.io
当前为
// ==UserScript== // @name BattleDudes.io Aim Line // @namespace http://tampermonkey.net/ // @version 0.1 // @description Adds a line indicating the weapon direction in BattleDudes.io // @author blahblah // @match *://*.battledudes.io/* // @license MIT // @icon https://sun9-74.userapi.com/impg/6jY26kEuZ0qU5I9x7mdBOdQ2zA8pG8H9s3AkDw/BTLz1oDKei0.jpg?size=604x340&quality=96&sign=9fe860f5ff054a01d1ffef1c2f9c79fb&type=album // @grant play hornex.pro // ==/UserScript== (function() { 'use strict'; var aimLine = document.createElement('div'); aimLine.style.position = 'fixed'; aimLine.style.width = '700px'; aimLine.style.height = '3px'; aimLine.style.backgroundColor = 'red'; aimLine.style.zIndex = '9999'; aimLine.style.transformOrigin = 'top left'; aimLine.style.display = 'none'; aimLine.style.pointerEvents = 'none'; document.body.appendChild(aimLine); function updateAimLine(event) { var centerX = window.innerWidth / 2; var centerY = window.innerHeight / 2; var mouseX = event.clientX; var mouseY = event.clientY; var angle = Math.atan2(mouseY - centerY, mouseX - centerX) * 180 / Math.PI; aimLine.style.left = centerX + 'px'; aimLine.style.top = centerY + 'px'; aimLine.style.transform = `rotate(${angle}deg)`; aimLine.style.display = 'block'; } document.addEventListener('mousemove', updateAimLine); document.addEventListener('keydown', function(event) { if (event.key === 'l') { aimLine.style.display = aimLine.style.display === 'none' ? 'block' : 'none'; } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址