Agma.io Gold Nickname Blinker

Make your gold nickname in Agma.io blink

  1. // ==UserScript==
  2. // @name Agma.io Gold Nickname Blinker
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Make your gold nickname in Agma.io blink
  6. // @author You
  7. // @match http://agma.io/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. let isGoldEnabled = true;
  15. let blinkInterval = 500; // Blink interval in milliseconds
  16.  
  17. function toggleGoldNickname() {
  18. isGoldEnabled = !isGoldEnabled;
  19. let goldCheckbox = document.querySelector('#goldNick');
  20. if (goldCheckbox) {
  21. goldCheckbox.checked = isGoldEnabled;
  22. goldCheckbox.dispatchEvent(new Event('change'));
  23. }
  24. }
  25.  
  26. let blinker = setInterval(toggleGoldNickname, blinkInterval);
  27.  
  28. // Add a button to stop the blinking
  29. let stopButton = document.createElement('button');
  30. stopButton.innerText = 'Stop Blinking';
  31. stopButton.style.position = 'fixed';
  32. stopButton.style.top = '10px';
  33. stopButton.style.right = '10px';
  34. stopButton.style.zIndex = '9999';
  35. stopButton.onclick = function() {
  36. clearInterval(blinker);
  37. };
  38. document.body.appendChild(stopButton);
  39. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址