MooMoo.io Visuals

Visually improve moomoo.io by changing the style of the storeHolder and chatBox element

当前为 2024-05-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name MooMoo.io Visuals
  3. // @name:es MooMoo.io Visuales
  4. // @namespace http://tampermonkey.net/
  5. // @version 1.0
  6. // @description Visually improve moomoo.io by changing the style of the storeHolder and chatBox element
  7. // @description:es Mejora visualmente moomoo.io cambiando el estilo del elemento storeHolder y chatBox
  8. // @author Tu Nombre
  9. // @match *://moomoo.io/*
  10. // @match *://sandbox.moomoo.io/*
  11. // @grant none
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. function changeStyle() {
  19. var storeHolder = document.getElementById('storeHolder');
  20. var chatBox = document.getElementById('chatBox');
  21.  
  22. if (storeHolder) {
  23. storeHolder.style.height = '600px';
  24. storeHolder.style.width = '400px';
  25. }
  26.  
  27. if (chatBox) {
  28. chatBox.style.backgroundColor = 'rgb(0 0 0 / 0%)';
  29. }
  30.  
  31. if (storeHolder && chatBox) {
  32. clearInterval(intervalId);
  33. }
  34. }
  35.  
  36. var intervalId = setInterval(changeStyle, 500);
  37. })();