Table of Contents

updated ruler

Posted 2003-04-02 @ 02:22:48

[Update: be sure to check out version 1.2.]

I updated the Ruler favelet so that it can be disabled without reloading the current document:

Ruler 1.1

Unfortunately, Safari (as of v67) doesn't support document.onkeypress, and none of my Gecko browsers seem to handle document.ondblclick, so I had to implement different mechanisms for turning it off for the two: Gecko users can simply press any key to get rid of it, but Safari folks will have to double-click somewhere in the window

I might get around to reworking the whole thing per Stuart's suggestion to anchor the floater one of these days, or perhaps make it draggable, but for now, I have bigger fish to fry.

For those wondering how long a favelet/bookmarklet can be, this one stands at 2796 characters. It's more verbose than I generally prefer, and I could easily cut ~500 out by compressing variable names & whatnot, but I decided to leave it somewhat readable for the curious.