Skip to content

Conversation

@06kellyjac
Copy link

  • Detector hint for startpage.com
  • Fix detector for developer.mozilla.org
  • Detector hint for opentitan.org
  • Detector hint for supabase.com
  • Fix for ebpf.io
  • Add maxroll.gg to dark sites
  • Add full detector for android-x86.org
  • Detector hint for docs.renovatebot.com
  • Detector hint for *.zulipchat.com
  • Detector hint for expo.dev
  • Also detect gist.github.com
  • Detector hint for developer.hashicorp.com
  • Detector hint for zen-browser.app

I've tested all but *.zulipchat.com in a fresh zen-browser. That one I've tested by hand with document.querySelector()
I'll log in to a chat at some point tomorrow.

The auto detection for opentitan.org mostly works but it can get stuck as "detected dark mode" on light mode until refreshed. Lightmode to darkmode is identified properly without refreshing.
Auto detection for startpage is a bit odd since it can set 2 different default colours when using device. I couldn't find something fixed to use.

There aren't any other css selectors using :has or :not so I'll keep this draft to discuss in-case that's not allowed

I can also split this out into separate PRs if necessary but I wanted to get a discussion going in one place first :)

Only the hosted chats, the zulip.com website doesn't have themes.
Disabling darkreader fixes some of their tooling e.g. Path of Exile
builds.
Make mobile hamburger visible.
Make eBPF logo more visible.
Make text for main button more visible.
Make tick marks more visible.
Not perfect since the default theme is defined in CSS by the user
preferences, but it's not worse than current.
It means that darkreader will start enabled but will be turned off as
needed when the user switches theme.
Initial theme is decided by OS preferences and specified with a theme
of "dark light", but darkreader can identify and skip opt-in dark mode.
Also accounts for where set to device and selects into dark.
@06kellyjac 06kellyjac marked this pull request as draft November 11, 2025 17:07
@06kellyjac
Copy link
Author

Addresses #12599 (at least for startpage itself)
Might address #11644 for startpage, depends if that background/theme still exists
Probably addresses #14690 if it means expo.dev

@alexanderby
Copy link
Member

Please separate the PRs, and only supply a fix where it's really necessary. I couldn't reproduce the issues with the start page, it's probably fixed now. The react native issue doesn't seem to be related to HTML, but rather Android and iOS UI.

@06kellyjac
Copy link
Author

Thanks.
Yeah I can split it.

Just to clarify slightly more complex css selectors like :has :not etc are ok?


On startpage with "System default" it fails to recognize dark mode on 4.9.112. I can check again for latest main

image image image
image image image

It looks like explicit dark and night work fine. Shall I remove those hints and just keep what's needed for System Default to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants