chatgpt css

Customize styles for ChatGPT tables and text

当前为 2025-07-09 提交的版本,查看 最新版本

// ==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.20250709090613
// @namespace https://gf.qytechs.cn/users/1435046
// ==/UserScript==

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

    style.textContent = `
        * {
            /*min-width: unset !important;
            -webkit-line-clamp: unset !important;*/
            min-width: revert !important;
            -webkit-line-clamp: revert !important;
        }

        #thread * {
            /*margin-left: unset !important;
            margin-right: unset !important;*/
            margin-left: revert !important;
            margin-right: revert !important;
        }

        article {
            padding-left: 5px;
            padding-right: 5px;
        }

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

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

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

        .katex {
            overflow-x: auto;
            overflow-y: visible !important;
        }

        .katex .strut {
            /*display: unset !important;*/
            display: revert !important;
        }

        `;
    document.head.appendChild(style);
})();

QingJ © 2025

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