Microsoft has added a new flag called “Force Dark Mode for Web Contents” in the Edge Canary 80.0.317.1. The new flag does exactly what the name suggests — once enabled, the feature will force Dark Mode on any website.

If you can remember, Google added the exact same flag in the Chrome Canary back in August.

The “Force Dark Mode for Web contents” can be found under edge://flags and when enabled, it will “automatically render all web contents using a dark theme on Mac and Windows.

Another important thing to note here is that the force Dark Mode flag has zero impact on sites that uses their own Dark Mode, so if you switch to dark mode on MSPU(by going to SETTINGS> SITE THEME), the flag will no longer be able to force Dark Mode on the site. Likewise, if you’re already using a browser extension that applies the dark mode to all pages, the flag respects the settings of that extension too.

The flag will let you selectively employ specific elements of the implementation including:

  • Enabled with simple HSL-based inversion
  • Enabled with simple CIELAB-based inversion
  • Enabled with selective image inversion
  • Enabled with selective inversion of non-image elements
  • Enabled with selective inversion of everything

via u/Leopeva64-2

Comments