Original code for Firefox "Color Source" add-on