Greasy Fork is available in English.

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

Override background color on ChatGPT message surface

作者
Brian Hurd
今日安裝
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.