[Feature Request] detecting and automatic switching to site vendor dark mode
See original GitHub issueIs 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.
- darkreader has a predefined rule to check if the website uses dark mode currently (
body.site-theme-dark
). - if it exists, don’t load standard darkreader
- if there is no such element, check for
.theme-selector .dark
, the dark mode switch element. - if it exists, click on it and disable standard darkreader.
- 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:
- Created 3 years ago
- Reactions:9
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good suggestion but some problems with it…
Duplicate of #1837