Skip to content

Instantly share code, notes, and snippets.

@gaby-de-wilde
Created June 23, 2011 01:04
Show Gist options
  • Save gaby-de-wilde/1041671 to your computer and use it in GitHub Desktop.
Save gaby-de-wilde/1041671 to your computer and use it in GitHub Desktop.
Bookmarklet: zap colors - black with white text
javascript:(function(){var%20newSS,%20styles='*%20{%20background:%20black%20!%20important;%20color:%20white%20!important%20}%20:link,%20:link%20*%20{%20color:%20#0000EE%20!important%20}%20:visited,%20:visited%20*%20{%20color:%20#551A8B%20!important%20}';%20if(document.createStyleSheet)%20{%20document.createStyleSheet("javascript:'"+styles+"'");%20}%20else%20{%20newSS=document.createElement('link');%20newSS.rel='stylesheet';%20newSS.href='data:text/css,'+escape(styles);%20document.getElementsByTagName("head")[0].appendChild(newSS);%20}%20})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment