Chat+

A Better chat for Bloxd.io!

  1. // ==UserScript==
  2. // @name Chat+
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description A Better chat for Bloxd.io!
  6. // @author Uoksisss
  7. // @match https://bloxd.io/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=bloxd.io
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. function betterChat() {
  16. const chatMessages = document.querySelectorAll('.ChatMessages');
  17. const chatInput = document.querySelector('.ChatInput');
  18.  
  19. const messageStyles = {
  20. color: '#fff',
  21. padding: '10px',
  22. borderRadius: '15px 0 15px 15px',
  23. borderTopLeftRadius: '15px',
  24. boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.7)',
  25. backdropFilter: 'blur(5px)'
  26. };
  27.  
  28. const inputStyles = {
  29. color: '#fff',
  30. padding: '10px',
  31. borderRadius: '5px 0 5px 5px',
  32. borderTopLeftRadius: '5px',
  33. boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.7)',
  34. backdropFilter: 'blur(5px)'
  35. };
  36.  
  37. if (chatMessages.length > 0) {
  38. chatMessages.forEach((chatMessage) => {
  39. Object.assign(chatMessage.style, messageStyles);
  40. });
  41. }
  42.  
  43. if (chatInput) {
  44. Object.assign(chatInput.style, inputStyles);
  45. }
  46. }
  47.  
  48. setInterval(betterChat, 730)
  49. })();