您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
kill thingy
当前为
// ==UserScript== // @name Kill counter // @namespace http://tampermonkey.net/ // @version 2 // @description kill thingy // @author MI300#4401 // @match https://diep.io/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @license MIT // @grant none // ==/UserScript== let blacklist = new Array (0); const target = CanvasRenderingContext2D; let killCounter = 0; target.prototype.fillText = new Proxy(target.prototype.fillText, { apply(fillText, ctx, args) { if (args[0].includes("You've killed ")) { if (blacklist.indexOf(args[0]) === -1) { killCounter+=1; blacklist.push (args[0]) setTimeout (function() { blacklist.splice(blacklist.indexOf(args[0]), 1); },1000); setTimeout (function() { blacklist.push(args[0]); },4600); setTimeout (function() { blacklist.splice(blacklist.indexOf(args[0]), 1); },5000); } } return Reflect.apply(fillText, ctx, args); } }); const canvas = document.getElementById('canvas') const ctx = canvas.getContext('2d'); setInterval(() => { let gui = () => { ctx.fillStyle = "white"; ctx.lineWidth = 7; ctx.font = 3 + "em Ubuntu"; ctx.strokeStyle = "black"; ctx.strokeText(`Kills: ` + killCounter, canvas.width * 0.9, canvas.height * 0.7); ctx.fillText(`Kills: ` + killCounter, canvas.width * 0.9, canvas.height * 0.7); window.requestAnimationFrame(gui); } gui(); }, 1000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址