Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Created May 21, 2009 11:22
Show Gist options
  • Save cheeaun/115411 to your computer and use it in GitHub Desktop.
Save cheeaun/115411 to your computer and use it in GitHub Desktop.
IE6-CSSize Bookmarklet code
javascript:void(function(){var link=document.getElementsByTagName("link");for(var i=0,len=link.length;i<len;i++){var l=link[i];if(l&&((l.href.indexOf(".css")>-1||l.rel=="stylesheet"))){l.parentNode.removeChild(l)}}var style=document.getElementsByTagName("style");for(var i=0,len=style.length;i<len;i++){var s=style[i];if(s){s.parentNode.removeChild(s)}}var iecss=document.createElement("link");iecss.setAttribute("rel","stylesheet");iecss.setAttribute("href","http://forabeautifulweb.com/demo/2009/05/21/ie6.0.2.css");document.getElementsByTagName("head")[0].appendChild(iecss);}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment