Tweak the Web

Library · Accessibility

Wikipedia: dark mode

Dark theme by inverting colors (images keep their colors).

wikipedia.orgFrom 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": [
    "wikipedia.org"
  ],
  "actions": [
    {
      "type": "css",
      "css": "html {filter:invert(.92) hue-rotate(180deg)!important;background:#fff!important;} img, picture, video, canvas, svg image, .mwe-math-element, [style*=\"background-image\"] {filter:invert(1) hue-rotate(180deg)!important;}"
    }
  ]
}
More rules

Using Claude, ChatGPT or another assistant? Ask it: “Add the Wikipedia: dark mode rule from Tweak the Web.”