Blog — Alex Hanna



« | »

Bookmarklet to make screen more readable…

Found this little gem that lets you read white text on a black background by doing some CSS magick. I also have it turn the text to Times New Roman, because serifed text seems easy on my eyes.  (h/t to http://www.chromeplugins.org/google/chrome-tips-tricks/make-black-text-white-page-1-click-7415.html)

Works in Chrome, not sure about other browsers. To use it, just create a new bookmark and paste the following in.

1
javascript:(function(){ var newSS, styles='* { background: black ! important; color: white !important; font-family: "Times New Roman", serif !important; } :link, :link * { color: #0000EE !important } :visited, :visited * { color: #551A8B !important }'; if(document.createStyleSheet) { document.createStyleSheet("javascript:'"+styles+"'"); } else { newSS=document.createElement('link'); newSS.rel='stylesheet'; newSS.href='data:text/css,'+escape(styles); document.getElementsByTagName("head")[0].appendChild(newSS); } } )();

 

Posted by on February 7, 2012.

Categories: Tech

« | »




Recent Posts


Pages



About Blog -- Alex Hanna

This is where I put stuff that is too long to put in a tweet. These things have either been published someplace else or are rant-oriented. Enjoy!more →

Switch to our desktop site