allenai css

Force code wrapping and unset chat message display

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

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

(function() {
  const style = document.createElement('style');
style.id = 'allenAiCssStyleId';

    style.textContent = `
* {
    box-shadow: revert !important;
    overflow-wrap: anywhere !important;
    /* white-space: revert !important; */
    width: revert !important;
    text-wrap-mode: wrap !important;
    padding: revert !important;
    min-width: revert !important;
    max-width: revert !important;
  }

html {
    box-shadow: inset 0 0 0 1px red !important;
}

div#root > div {
position: revert !important;
    height: calc(100vh - 16px);
}
    :root {
        color-scheme: light dark !important;
    }

body {
margin: revert !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;
    }

svg {
color: initial !important;
}

.MuiInputBase-root {
    background-color: revert !important;
}

.MuiBox-root {
    /*background-color: revert !important;*/
}

svg[data-testid="ArrowDropDownIcon"] {
    fill: currentColor !important;
    position: revert !important;
}

.chat-message > div:not(#icon) > div:not(div[data-is-streaming]) > div:not(div[class*="MuiButtonGroup"]) {
    background-color: red !important;
    color: black;
}

div.MuiBox-root:has(> textarea[name="content"]) {
    background-color: revert !important;
}

.MuiFormControl-fullWidth:has(> div > textarea[name="content"]) {
    width: 100% !important;
}
        `;
  document.head.appendChild(style);
})();