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
تم إنشاؤه
03-04-2025
تم تحديثه
03-04-2025
Size
788 Bytes
الترخيص
لا يوجد
ينطبق على

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.