Color Changer (NOT WORKING)

NOT WORKING ANY MORE!

  1. // ==UserScript==
  2. // @name Color Changer (NOT WORKING)
  3. // @namespace Super Color Name Changer
  4. // @version 1.0.6
  5. // @description NOT WORKING ANY MORE!
  6. // @author Arimas
  7. // @license MIT
  8. // @match *://agma.io/
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var message = function (message, isError) {
  16. var curser = document.querySelector('#curser');
  17.  
  18. curser.textContent = message;
  19. curser.style.display = 'block';
  20. curser.style.color = isError ? 'rgb(255, 0, 0)' : 'rgb(0, 192, 0)';
  21.  
  22. window.setTimeout(function () {
  23. curser.style.display = 'none';
  24. }, 5000);
  25. };
  26.  
  27.  
  28. var colorInterval;
  29.  
  30. window.addEventListener('miracleCommand', function(commandEvent) {
  31. if (commandEvent.command === '/blink') {
  32. $('#chtbox').val('').focus();
  33. if (colorInterval) {
  34. clearInterval(colorInterval);
  35. colorInterval = null;
  36. message('Nickname color blinking off');
  37. } else {
  38. colorInterval = setInterval(function(){document.getElementById('cGoldName').dispatchEvent(new MouseEvent("click"));},250);
  39. message('Nickname color blinking on');
  40. }
  41. }
  42. });
  43. })();

QingJ © 2025

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