invertThemeBookmarklet is a dynamic bookmark written in pure JavaScript to invert the colors of a website (excluding images). I personally prefer dark themes because they are less tiring for the eyes. That was the motivation to create invertThemeBookmarklet.
- Open your favorite browser
- Create a new bookmark
- Copy the contents of invertThemeBookmarklet.min.js and paste it in the new bookmark's URL field
- Add a nice name to the bookmark (I chose 🌗)
If you find a case where the script could be improved or a bug needs to be fixed, just file an issue and I'll take a look into it.
This script is published under the MIT License and can be used for any commercial and personal projects.