您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes team members (and yourself) have color-changing health bars! Client-side only, others cannot see it.
// ==UserScript== // @name Lightbulb's Rainbow Health Bar for MooMoo.io // @version 1.0 // @description Makes team members (and yourself) have color-changing health bars! Client-side only, others cannot see it. // @author Lightbulb // @match *://*.moomoo.io/* // @grant none // @namespace https://greasyfork.org/users/721571 // ==/UserScript== let hue = 0; let replaceInterval = setInterval(() => { if (CanvasRenderingContext2D.prototype.roundRect) { CanvasRenderingContext2D.prototype.roundRect = ((oldFunc) => function() { if (this.fillStyle == "#8ecc51") this.fillStyle = `hsl(${hue}, 100%, 50%)`; return oldFunc.call(this, ...arguments); })(CanvasRenderingContext2D.prototype.roundRect); clearInterval(replaceInterval); }}, 10); function changeHue() { hue += Math.random() * 3; } setInterval(changeHue, 10);