question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] detecting and automatic switching to site vendor dark mode

See original GitHub issue

Is your feature request related to a problem? Please describe. some websites provide dark mode for its users but it needs to be enabled by user. I think that darkreader could have some set of rules or JS functions for that.

Describe the solution you’d like I’ll take anilist.co as an example.

  1. darkreader has a predefined rule to check if the website uses dark mode currently (body.site-theme-dark).
  2. if it exists, don’t load standard darkreader
  3. if there is no such element, check for .theme-selector .dark, the dark mode switch element.
  4. if it exists, click on it and disable standard darkreader.
  5. if it does not exist, then usual darkreader rules are enabled.

also there should be some generic rules, like for mastodon [dark mode enabled on the most of instances by default (try: https://mastodon.social/@Gargron ), but some instances switch it like on https://framapiaf.org/@Framasoft ] or nextcloud.

Additional context

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Gustedcommented, May 6, 2020

Good suggestion but some problems with it…

  1. Not every user would like to swtich to vendor’s dark mode as it too material or etc.
  2. We should make this for every site another rules as take for example reddit.com it doesn’t say anywhere it’s dark in the DOM structure.
0reactions
KaKi87commented, Dec 22, 2022

Duplicate of #1837

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to detect if the User's OS prefers dark mode and change ...
Not only should I support dark mode, but I should detect the user's preference and switch seamlessly. I should also support changing modes ......
Read more >
Feature Request List - Page 5 - LIVEcommunity - 209128
Hi community In a lot of topics there are discussions and questions about PAN-OS enhancements and missing (not yet implemented) - 209128 -...
Read more >
How to Turn On Chrome Dark Mode - Nira
Go to Settings in the Windows menu and select Personalization, then select Colors. In the Choose your default app mode, select Dark. That's...
Read more >
How to turn on dark mode on all your apps and devices
It switches the colours of your screens, to give everything a black or dark background with white text and objects. You can use...
Read more >
Feature request: Match dark mode with the OS #10644 - GitHub
Yes please; major IDEs like IntelliJ/VSCode as well as the Chrome browser and the "Dark Reader" extension support the feature to automatically ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found