Skip to content

ChatGPT - fixed some UI issues by sigai

Details

Authorsigai

LicenseNO-REDISTRIBUTION==/UserStyle== */

Categorychat.openai.com

Created

Updated

Size3.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Fixing the next issues:

  • make textarea compatible with Grammarly;
  • wider text input and output blocks (reduce scrolling).

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           chatGPT自定义
@namespace      chatgpt.com
@version        1.1.10
@description    自定义chatGPT: 1.最大宽度,2.处理插件
@author         fangtiansheng
==/UserStyle== */
@-moz-document regexp(".*chatgpt.*") {
    /*  最大化右侧详情对话    */
    .xl\:max-w-\[48rem\] {
        max-width: 100%;
    }
    /* 隐藏首页无效标签:兼容插件      */
    div.hidden.h-\[70px\].lg\:block > div,
    div.mb-7.hidden.text-center.lg\:block > div {
        display: none;
    }

    /* 隐藏又下按钮*/
    #radix-\:R99ai4lj5\: {
        display: none;
    }
    /*  插件:去水印    */
    .AIPRM__sidebar-icon {
        background-image: url('') !important;
    }
    .AIPRM__conversation__response::after {
        display: none !important;
    }
    /*  插件:统一字体    */
    [class*="AIPRM"] {
        /* 你的样式规则 */
        font-size: 12px;
        gap: 0px;
        margin-top: 0px;
    }
    /*      隐藏头像图片 */
    img[alt='User'] {
        display: none !important;
    }
    button[data-testid="profile-button"] {
        border: 1px solid #e90b0b;
    }
    /*  圆角调小   */
    .rounded-\[26px\] {
        border-radius: 5px;
    }
    nav > a,
    nav > div:nth-child(3) {
        display: none!important;
    }
    select {
        line-height: 12px;
    }
    #prompt-textarea {
        color: #0aae04;
        border: 4px inset #2f2f2f;
        caret-color: #ff1616;
    }
    /* 选中后放大输入对话框     */
    #prompt-textarea:focus {
        min-height: 10dvh;
/*         max-height: 70dvh; */
    }

    div[data-message-author-role='assistant'] {
        border: 4px outset #000;
        border-radius: 5px;
        width: 100%;
    }
    div[data-message-author-role='user'] {
        color: #0aae04;
        width: 100%;
    }
    div[data-message-author-role='user'] div {
        align-items: flex-start !important;
        justify-content: flex-start;
    }
    @media (min-width: 1024px) {
        .lg\:AIPRM__max-w-3xl {
            max-width: 100%;
        }
    }
    form {
        margin-right: 15px;
        border: 3px outset #2f2f2f !important;
        border-radius: 5px;
    }
    label.AIPRM__block,
    select.AIPRM__block {
        display: inline-block;
    }
    select#languageSelect,
    select#toneSelect,
    select#writingStyleSelect {
        width: 100px;
    }
    select#languageSelect,
    select#toneSelect,
    select#writingStyleSelect,
    select#continueActionSelect,
    button#continueWritingButton {
        line-height: 12px;
    }
    div.flex-shrink-0.flex.flex-col.relative.items-end {
        display: none;
    }
    [dir=ltr] .-ml-2\.5 {
        margin-left: -20px;
        margin-right: -5px;
    }
}
@-moz-document domain("claude.ai") {
    /*  最大化右侧详情对话    */
    .max-w-3xl {
        max-width: 100%;
    }
    /*  插件:去水印    */
    .AIPRM__sidebar-icon {
        background-image: url('') !important;
    }
    .AIPRM__conversation__response::after {
        display: none !important;
    }
    /*  插件:统一字体    */
    [class*="AIPRM"] {
        /* 你的样式规则 */
        font-size: 14px;
        gap: 0px;
        margin-top: 0px;
    }
}

Reviews

No reviews yet.