Fix ChatGPT White Message Bug – Dark Mode Background Patch (Tampermonkey UI Override)

Override background color on ChatGPT message surface

// ==UserScript==
// @name         Fix ChatGPT White Message Bug – Dark Mode Background Patch (Tampermonkey UI Override)
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Override background color on ChatGPT message surface
// @author       bwhurd
// @match        https://chat.openai.com/*
// @match        https://chatgpt.com/*
// @match        https://www.chatgpt.com/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';
    setTimeout(() => {
        const style = document.createElement('style');
        style.innerHTML = `
            .bg-token-message-surface {
                background-color: var(--main-surface-secondary) !important;
            }
        `;
        document.head.appendChild(style);
    }, 500);
})();