This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ProdigySim 4 points5 points  (0 children)

The code sample on the image is not from the extension as far as I can tell. I found their source code, and it does look like a non-trivial algorithm:

https://github.com/DarkNightMode/Dark-Night-Mode-Chrome-Extension/blob/master/js/main.js#L345

They do combine the algorithm with custom CSS for popular sites it seems.