您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press Q to randomize, X for more transparency Z for less transparency and B to reset
// ==UserScript== // @name Diep.io Transparent Mode // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description Press Q to randomize, X for more transparency Z for less transparency and B to reset // @author xScripty // @license MIT // @match https://diep.io // @grant none // ==/UserScript== const canvas = document.getElementById ('canvas'); const ctx = canvas.getContext ('2d'); document.addEventListener('keydown', function (event) { if (event.key == 'q') { ctx.globalAlpha = Math.random(); } if (event.key == 'x') { ctx.globalAlpha -= 0.01; } if (event.key == 'z') { ctx.globalAlpha += 0.01; } if (event.key == 'b') { ctx.globalAlpha = 1; } });