Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This bookmarklet toggles a dark overlay (75% black) over any page you're viewing, handy for toning down those blindingly white pages in the middle of the night. To use, copy the entire contents of this Gist, create a new bookmark in your browser (the bookmarks bar is a good, handy location to put it), and paste the Gist as the URL of the bookmark.

This comment has been minimized.

Copy link
Owner Author

proimage commented Apr 12, 2016

BTW, this uses the CSS "pointer-events" property to allow the site "below" the overlay to be interacted with normally. Browser support is as seen here: - basically, IE 11+, and everything else (besides Opera Mini).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.