Tweak the Web

Library · Video

YouTube: pure black dark theme

Sets the dark theme backgrounds to true black (OLED friendly).

youtube.comFrom the Tweak the Web library

What it changes

It applies as the page loads and keeps working as the page updates. Turn it off any time and the page returns to normal.

Technical details
{
  "matches": [
    "youtube.com"
  ],
  "actions": [
    {
      "type": "css",
      "css": "html[dark], [dark] {--yt-spec-base-background:#000!important;--yt-spec-raised-background:#0a0a0a!important;--yt-spec-menu-background:#0a0a0a!important;--yt-spec-general-background-a:#000!important;--yt-spec-general-background-b:#000!important;--yt-spec-brand-background-solid:#000!important;} html[dark] body, html[dark] ytd-app {background:#000!important;}"
    }
  ]
}
More rules

Using Claude, ChatGPT or another assistant? Ask it: “Add the YouTube: pure black dark theme rule from Tweak the Web.”