Chat 3.0 Styles

Restore old chat styles

// ==UserScript==
// @name         Chat 3.0 Styles
// @namespace    http://tampermonkey.net/
// @version      1.1
// @license      MIT
// @description  Restore old chat styles
// @author       Titanic_
// @match        *://*.torn.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=torn.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const css = `
        .root___RLOBS, .root___J_YsG, .root____TLtV>:first-child, .header___hEWvp, .root___WHFbh { box-shadow: none !important; }
        .root___RLOBS, .header___hEWvp, .root___WHFbh { background: linear-gradient(180deg, #555, #333) !important; }
        .root___J_YsG, .root____TLtV>:first-child { background: linear-gradient(180deg, #285e7d, #1b465d 72.66%, #123344) !important; }
        .icon___qhStJ, .icon___M_Izz, .minimizeIcon___IKqKw, .minimizeIcon___lG55d, .closeIcon___Vfc9Y { height: 20px !important; width: 20px !important; }
        .root___K2Yex.opened___Mwpgz { background: linear-gradient(0deg,#3d3d3d,#1f1f1f) !important; }
        .opened___kN9vs { background: linear-gradient(180deg, #001d28, #003f54) !important; }
        .actionButtonPressed___NzssF.enabled___rxiMF, .actionButton___x3Hlp:hover.enabled___rxiMF { background: linear-gradient(0deg, #000000, #444) !important; }
    `;

    const style = document.createElement('style');
    style.textContent = css;
    document.head.appendChild(style);
})();