deceiver / OSBot Chat

// ==UserScript==
// @name         OSBot Chat
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Switches the default white chat colors to dark colors.
// @author       deceiver
// @match        https://osbot.org/chat/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    addGlobalStyle('body { background-color: #0a0a0a; !important; }');
    addGlobalStyle('body { color: #c3c3c3; !important; }');
    addGlobalStyle('.form-control { background-color: #191919; !important; }');
    addGlobalStyle('.form-control { color: #c3c3c3; !important; }');
})();

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}