Skip to content

Instantly share code, notes, and snippets.

@arturi
Created November 23, 2013 10:41
Show Gist options
  • Save arturi/7613099 to your computer and use it in GitHub Desktop.
Save arturi/7613099 to your computer and use it in GitHub Desktop.
## Description Darken is a very simple javascript bookmarklet that dims brightness of you browser screen for night reading. Tested in Chrome and Safari on Mac and iOS. Darken is only able to dim content of a browser window, so the address bar and buttons will remain bright (however on an iPhone you can work around it by going full-screen). This …
javascript:(function(){document.getElementsByTagName("html")[0].style.cssText = "filter: brightness(0.4); -webkit-filter: brightness(0.4); -moz-filter: brightness(0.4); -webkit-transform: translateZ(0);";})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment