简体   繁体   中英

How to detect darkmode on Samsung Internet browser?

If this can be detected - is there a possibility to influence colors by CSS classes or JavaScript?

With the dark reader extension, it is also possible to submit adjustments. Hope that it is also possible here, if nothing else could change it.

Samsung Internet does strange things with colors in night mode. If you're aware of them, you can sort of workaround any issues. I've not found a way to detect it, though. The color filtering takes place late in the rendering process so APIs aren't updated. The obvious methods (such as window.getComputedStyle ) returns original colors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM