Rated 4 out of 5 stars

Does what it says on the tin; top job.

One feature request: replace the selected text in-place by modifying the InnerHTML instead of showing it in a popup box. You could make this a configurable behaviour (i.e. choose between one or the other).