Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Bookmarklets, such as SuperGenPass don't have favicons, because they are javascript: links and Firefox doesn't know where it would obtain the favicon from. Is there any way to add a favicon to a JavaScript bookmarklet?

share|improve this question
I don't think this is possible, but if you find a solution I'd certainly like to know (I have 100's of bookmarklets) – scunliffe Oct 18 '09 at 2:09

The Favicon Picker 2 extension will let you do this.

How to Use: Just right-click any bookmark and select "Properties,"
then click "Browse..." to select an icon or paste a URL to an icon.

Bookmarklet icons

Also, you can uninstall the extension when you're done and the icons will remain.

share|improve this answer
Mucks up some other dialogs on Mac, but I was able to install the extension, set an icon, and uninstall it. Is there a way to change this using about:config or the like? – Drew Stephens Oct 19 '09 at 14:58
Unfortunately, the extension has been incompatible with the latest version Firefox, at least since May 2015, at most today. – thenonhacker Jul 20 '15 at 5:55

You can try this trick:

  1. Find a normal link (without JavaScript) for the website with the correct favicon.

  2. Add that link to your bookmarks toolbar as a normal bookmark.

  3. Finally, change the properties of the bookmark you just added and change the location to be the actual JavaScript bookmarklet you want (you want the location from the bookmarklet that doesn't have the favicon).

Now you've turned the bookmark from step 2 into a bookmarklet with the desired favicon and JavaScript.

share|improve this answer
up vote 3 down vote accepted

Pelms' suggestion led me to find the possibly-related Favicon Picker 3, which works better on Mac OS X.

share|improve this answer
Works fine for me on Windows 7 x64 too – CAD bloke May 30 '10 at 23:24
Not available for Firefox 31 – Chandrayya G K Aug 19 '14 at 5:32

For Firefox 4+ use Bookmark Favicon Changer. The old Favicon Picker add-ons aren't updated.

share|improve this answer
Dead link!!!!!!! – Chandrayya G K Aug 19 '14 at 5:34
Updated the link. It's hosted off of Firefox now. – GollyJer Aug 20 '14 at 14:00

The easiest way is to hijack a bookmark. Just bookmark a page that has a favicon that you want to use. You may need to click on the bookmark to have it load the favicon from the site that it links to. Once you have the favicon, then, go to the bookmark, right click, and choose properties. You can then change the "location" to the javascript code for the bookmarklet you want to have associated with the favicon. Tip: To differentiate a bookmarklet from a bookmark, I change the "name" in the properties tab to whatever preceeded by M:, so for example, if the bookmarklet was for creating a shortened URL using, I would name that ""

share|improve this answer
Amigo, is this answer substantively different from the answer by – Mr.Wizard Jul 1 '12 at 8:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .