您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Creates a line that follows the mouse
// ==UserScript== // @name Mouse Line Aimer for zombsroyale.io // @namespace JonJon565 // @version 1.0 // @description Creates a line that follows the mouse // @author JonJon565|IGN:911 // @match https://zombsroyale.io/ // @grant GM_addStyle // @license MIT // ==/UserScript== (function() { 'use strict'; var line = document.createElement('div'); line.id = 'cursor-line'; document.body.appendChild(line); GM_addStyle(` #cursor-line { display: none; /* Initially hide the line */ position: fixed; top: 50%; left: 50%; width: 150px; /* Set line thickness */ height: 3px; background-color: black; z-index: 9999; transform-origin: 0 0; /* Set transform origin to top left corner */ } `); document.addEventListener('mousemove', function(event) { var line = document.getElementById('cursor-line'); var centerX = window.innerWidth / 2; var centerY = window.innerHeight / 2; var mouseX = event.clientX; var mouseY = event.clientY; var deltaX = mouseX - centerX; var deltaY = mouseY - centerY; var angle = Math.atan2(deltaY, deltaX); var distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY); line.style.transform = 'translate(0%, 0%) rotate(' + angle + 'rad)'; line.style.width = distance + 'px'; }); document.addEventListener('keydown', function(event) { if (event.key === '-') { var line = document.getElementById('cursor-line'); line.style.display = (line.style.display === 'none') ? 'block' : 'none'; } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址