Chat+

A Better chat for Bloxd.io!

Pada tanggal 20 Maret 2024. Lihat %(latest_version_link).

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Chat+
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  A Better chat for Bloxd.io!
// @author       Uoksisss
// @match        https://bloxd.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bloxd.io
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    function betterChat() {
    const chatMessages = document.querySelectorAll('.ChatMessages');
    const chatInput = document.querySelector('.ChatInput');

    const messageStyles = {
        color: '#fff',
        padding: '10px',
        borderRadius: '15px 0 15px 15px',
        borderTopLeftRadius: '15px',
        boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.7)',
        backdropFilter: 'blur(5px)'
    };

    const inputStyles = {
        color: '#fff',
        padding: '10px',
        borderRadius: '5px 0 5px 5px',
        borderTopLeftRadius: '5px',
        boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.7)',
        backdropFilter: 'blur(5px)'
    };

    if (chatMessages.length > 0) {
        chatMessages.forEach((chatMessage) => {
            Object.assign(chatMessage.style, messageStyles);
        });
    }

    if (chatInput) {
        Object.assign(chatInput.style, inputStyles);
    }
}

setInterval(betterChat, 730)
})();