userCSS
Posted 2002-08-27 @ 23:09:16
I'm a Mac guy, and for various reasons, IE5 is currently my browser of choice. I wrote this bookmarklet to toggle my user style sheet a while back, and it's held a spot on my Favorites Toolbar ever since:
javascript:var%20cssPath='file://Macintosh%20HD/user.css';if
(!document.userCSS){document.createStyleSheet(cssPath);document.
userCSS=true;}else{i=document.styleSheets.length-1;document.
styleSheets[i].disabled=true;document.userCSS=false}
I use it to toggle my user.css, but changing the value of the cssPath variable allows you to apply any style sheet that can be referenced with a valid URL. Just for kicks, here's what this page looks like with ALA's main style sheet added to the cascade:
ALA StyleClicking again reverts to the default styles.
©2002-2010 kevin c smith