您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Spins things around you. [P] to toggle.
// ==UserScript== // @name Collapced diep theme. // @namespace http://tampermonkey.net/ // @version 4 // @description Spins things around you. [P] to toggle. // @author hqfx (ft. 810i) // @match https://diep.io/* // ==/UserScript== window.arg1 = 0 window.arg2 = 0 CanvasRenderingContext2D.prototype.lineTo = new Proxy(CanvasRenderingContext2D.prototype.lineTo, { apply: function(target, thisArg, args) { args = [args[0]+window.arg1, args[1]+window.arg2]; return Reflect.apply(target, thisArg, args); } }); Object.defineProperty(CanvasRenderingContext2D.prototype, 'lineTo', { value: CanvasRenderingContext2D.prototype.lineTo, writable: false, configurable: false }); let arg1 = 50; let arg2 = 0; let angle = 0; let isRunning = false; function movePoint() { if (!isRunning) { angle += 0.05; let radius = 5; let frequency = 5; let x = radius * Math.cos(frequency * angle); let y = radius * Math.sin(frequency * angle); window.arg1 = x; window.arg2 = y; //console.log(`arg1: ${window.arg1.toFixed(2)}, arg2: ${window.arg2.toFixed(2)}`); } } document.addEventListener("keydown", (e) => { if (e.keyCode === 80) { // Key code for 'p' isRunning = !isRunning; window.arg1 = 0 window.arg2 = 0 //console.log(`isRunning: ${isRunning}`); } }); setInterval(movePoint, 16);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址