• About
  • First time here?
  • Sitemap
  • Archives
  • Categories
  • ProTips: Flip Your Web Colours

    2011 - 12.20

    As you can see on this website, I prefer to read white text on a black background. It’s just less fatiguing, at least to me personally. I found myself getting irritated/eyestrain from long webpages full of useful information that I wanted to read but rendered with black text on a bright white background. I don’t know why this is the standard. Maybe the precedent set by newsprint? In any event, there is a solution. Create yourself a new bookmark, and instead of a web address, paste in this javascript:

    javascript: (function(){ var newSS, styles=’* { background: black ! important; color: white !important } :link, :link * { color: #CCFF33 !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); } } )();

    Then whenever you click that bookmark, boom, white text on black background! It doesn’t work perfectly on every single webpage, but on the whole it works well. I generally click it when I find an interesting page that I know I’ll be reading for a while. It’s made an excellent tweak to my web-browsing. Try it out!

    Tags: , ,

    Comments are closed.