chatgpt css

Customize styles for ChatGPT tables and text

目前為 2025-07-26 提交的版本,檢視 最新版本

// ==UserScript==
// @name         chatgpt css
// @description  Customize styles for ChatGPT tables and text
// @match        https://chat.openai.com/*
// @match        https://chatgpt.com/*
// @version 0.0.1.20250726072128
// @namespace https://gf.qytechs.cn/users/1435046
// ==/UserScript==

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

    style.textContent = `
        *:not(.katex):not(.katex *) {
            min-width: revert !important;
            -webkit-line-clamp: revert !important;
            white-space: revert !important;
            margin-left: revert !important;
            margin-right: revert !important;
        }

        html,
        body {
            background-color: revert !important;
        }

        div:has(> div > button[data-testid="open-sidebar-button"]) {
            background-color: revert !important;
        }

        .content-fade:after {
            background-image: revert !important;
        }

        div[class*="tableContainer"] {
            /*width: unset !important;*/
            width: revert !important;
        }

        div[class*="tableContainer"] *:not(.katex):not(.katex *) {
            padding: revert !important;
            height: revert !important;
        }

        div.text-base {
            padding: revert !important;
        }

        .katex {
            display: block !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
        }

        .bg-token-message-surface, .user-message-bubble-color {
            background-color: blue !important;
        }

        button {
            white-space: revert !important;
        }

        div[data-radix-popper-content-wrapper] {
            transform: revert !important;
        }

        div[data-radix-popper-content-wrapper],
        div[data-radix-popper-content-wrapper] * {
            width: revert !important;
            min-width: revert !important;
            white-space: revert !important;
            overflow-wrap: anywhere !important;
        }

        div:has(> button > div > span > svg > path[d^="M6.24992 11.0417C6.65578 11.0417 7.04227"]) {
            width: revert !important;
        }
        `;
    document.head.appendChild(style);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址