Fix ChatGPT White Message Bug – Dark Mode Background Patch (Tampermonkey UI Override)

Override background color on ChatGPT message surface

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
Brian Hurd
1日のインストール数
0
累計インストール数
1
評価
0 0 0
バージョン
1.0
作成日
2025/04/03
更新日
2025/04/03
大きさ
788バイト
ライセンス
不明
対象サイト

Fixes the ChatGPT white message bug that appears in dark mode when user messages have a white background instead of matching the dark theme.

  • ✅ Injects a CSS override to restore background color
  • ✅ Lightweight and non-intrusive
  • ✅ Uses Tampermonkey, no permissions needed

Bug example:

ChatGPT white background bug screenshot

Technical details:

  • Targets .bg-token-message-surface class
  • Applies background-color: var(--main-surface-secondary)
  • Injected after 500ms delay to ensure DOM readiness

Install with Tampermonkey. Customize the CSS if desired.