allenai css

Force code wrapping and unset chat message display

// ==UserScript==
// @name         allenai css
// @description  Force code wrapping and unset chat message display
// @match        https://playground.allenai.org/*
// @version 0.0.1.20250721200457
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function() {
  const style = document.createElement('style');
    style.textContent = `
    :root {
        color-scheme: light dark !important;
    }

    header>div.MuiToolbar-root {
        background-color: revert !important;
    }

    body,
    div.MuiPaper-root {
        background-color: revert !important;
    }

    div.MuiBackdrop-root.MuiModal-backdrop {
        background-color: rgba(0, 0, 0, 1);
    }

    .chat-message {
        display: revert !important;
    }

    code {
        white-space: pre-wrap;
    }

    .MuiBox-root {
        padding: revert !important;
    }

    button[aria-label="Scroll to bottom"] {
        display: none !important;
    }

    div.MuiBox-root[id="icon"] {
        display: none !important;
    }

    form>div.MuiStack-root {
        gap: revert !important;
    }
        `;
  document.head.appendChild(style);
})();