Looks nice, but IIRC the old code "cached" the selected text for a reason: in some browsers (not sure which
), clicking the
button will actually unselect the text before quickquote() has a chance to grab it.
I read that using onmousedown instead of onclick for the button will solve that problem though... :\