您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make your gold nickname in Agma.io blink
// ==UserScript== // @name Agma.io Gold Nickname Blinker // @namespace http://tampermonkey.net/ // @version 0.1 // @description Make your gold nickname in Agma.io blink // @author You // @match http://agma.io/ // @grant none // ==/UserScript== (function() { 'use strict'; let isGoldEnabled = true; let blinkInterval = 500; // Blink interval in milliseconds function toggleGoldNickname() { isGoldEnabled = !isGoldEnabled; let goldCheckbox = document.querySelector('#goldNick'); if (goldCheckbox) { goldCheckbox.checked = isGoldEnabled; goldCheckbox.dispatchEvent(new Event('change')); } } let blinker = setInterval(toggleGoldNickname, blinkInterval); // Add a button to stop the blinking let stopButton = document.createElement('button'); stopButton.innerText = 'Stop Blinking'; stopButton.style.position = 'fixed'; stopButton.style.top = '10px'; stopButton.style.right = '10px'; stopButton.style.zIndex = '9999'; stopButton.onclick = function() { clearInterval(blinker); }; document.body.appendChild(stopButton); })();