brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
18k stars 2.36k forks source link

Blacklist for "Auto Dark Mode for Web Contents" flag #42481

Open realgooseman opened 1 week ago

realgooseman commented 1 week ago

Platforms

all

Description

Basically a type of blacklist that disables the Auto Dark Mode for Web Contents flag on custom websites. This would remove the need for a third-party extension like Dark Reader and be lighter on ressource usage as well.

How it would work:

  1. Go to brave://flags and enabling the #enable-force-dark flag will force dark mode on every page on restart
  2. Go to a website, right-click the page and you could add that website to the blacklist via a new context menu entry
  3. You could also manage the blacklist's websites from Brave's settings or Brave Shields pop-up (where it would fit the best)
  4. OPTIONAL - Ideally you could add RegExp rules to match URL's to blacklist via settings (like Dark Reader)

Opera (GX) which is also based on Chromium already has a similar feature for example.

If not possible or out of scope, has the Brave team ever considered a built-in dark mode tool that would invert light only websites and ditch the Chrome flag or the need for an extension like Dark Reader ?

bsclifton commented 6 days ago

cc: @rebron @timchilds