Table of Contents

Articles Posted During August 2002

userCSS

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 Style

Clicking again reverts to the default styles.

2002-08-27 23:09:16

max

I was annoyed at the fact that neither IE5.1 nor Mozilla respect the Dock when maximizing the browser window using OS X's standard enlarge/restore button, so I modified one of Tantek's Favelets to do it instead:

Maximize IE

IE users can just drag this puppy directly to the Favorites Bar, while Moz folks will need to control-click & select 'Bookmark this Link...' or manually create a bookmark containing the following:


javascript:void(window.moveTo(0,0));void(window.resizeTo(1024,670))

Either way, you'll most likely need to tweak that last number to get the bottom edge to line up with the top of your Dock, and those of you blessed with larger monitors can change the 1024 to suit your resolution.

Oh, this doesn't work properly in Chimera, but that's okay because Chimera's built-in button works properly to begin with.

2002-08-12 21:41:09

intro

Okay. Against my better judgement, I'm gonna go ahead and throw this site into the wild & see what happens.

I haven't gotten around to testing on any browsers other than IE5 & Mozilla on OS X, so I'm sure there'll be some style sheet tweaks over the coming days. If you've somehow stumbled onto this place, and things look a bit wonky, screenshots would be appreciated.

Part of the rationale behind going live before it's ready is that I'm hoping to coerce myself into finally getting around to finishing the site.

We'll see.

2002-08-02 20:02:50