13

My Firefox bookmark toolbar items change icons every now and then for apparently no reason, especially if a site is down. I get the DNS site's icons all over, on another case I have the Facebook icon on a TOTALLY irrelevant bookmark, so the question is: How can I change the icons on my bookmarks in the bookmark toolbar?

2
5

Favicon Picker 2 adds a UI for replacing bookmark icons. The extension is based on the the version posted in MozillaZine. It also features an increased icon size limit.

enter image description here

4
7

Point your bookmark at a local HTML document that immediately redirects to the desired destination. Link to a local favicon in the same directory.

You may need to restart your browser before the favicon will show up on the bookmark.

file:///[path]/example.html

<html>
<head>
    <meta http-equiv="refresh" content="0; url=http://www.example.com" />
    <link rel="shortcut icon" href="example.ico" type="image/x-icon" />
</head>
<body></body>
</html>

file:///[path]/example.ico


This solution suits my personal needs in Firefox 47.0. Note that the solution doesn't work so well where:

  • You need to create such bookmarks frequently.
  • You have disabled redirection as a security precaution.
  • The bookmark must point directly at the destination.
2

Bookmark Favicon Changer

Right click at your bookmark (Bookmark menu, Bookmark toolbar, Bookmark sidebar, Bookmark manager); the popup menu with option "Change Favicon", "Reset Favicon", "Remove Favicon" and "Export Favicon" will appear.

File types support are ico, bmp, dib, gif, jpg, jpe, jpeg, jif, jfi, jfif, png, apng, svg (every file types that Firefox or SeaMonkey support including URL).

enter image description here

  1. To get Bookmark Favicon Changer to work in Firefox 40 go to this link
  2. Instead of clicking on Free Install select the Mirror for Download link and Download to a folder of your choice
  3. In the main Menu of Firefox select File
  4. Select Open File from the drop down menu
  5. Navigate to the place where you downloaded Bookmark Favicon Changer and
    open it

You will now find that it is in your add-on extension list

2
  • 1
    Not compatible with Firefox Quantum. – Fabien Snauwaert Feb 21 '18 at 14:47
  • 2
    Link Rot on "this link" - page not found. Using v59 April 2018 – SDsolar Apr 5 '18 at 19:18
1

The following article describes how to do it manually/without extra extension and using a css file in the firefox profile folder (did not test it yet)

http://www.tersetechtips.com/how-to-change-firefox-bookmark-icons-favicons-without-extensions-or-addons/

  1. Open up Firefox’s behind-the-scenes “profile” folder on your computer. On Windows 7/8, this is located at:

C:\Users\Your_Username\AppData\Roaming\Mozilla\Firefox\Profiles\Your_Profile_Folder

  1. In that folder, create a new directory called “chrome”, if it doesn’t already exist.

  2. Inside the “chrome” folder, create a new file called “userChrome.css”.

  3. Open up userChrome.css and paste the following CSS code:

/* First line of userChrome.css must be this: */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Custom favicon for this bookmark */
.bookmark-item[label="BOOKMARK_NAME_HERE"] image {
    width:0!important;
    height:0!important;
    padding: 0 0 16px 16px !important;
    background:url(BASE_64_STRING_HERE)!important; 
}
0

Someone perhaps nixda above writes

To get Bookmark Favicon Changer to work in Firefox 40 go to this link But seeing as how it is off site (off the firefox official list of add-ons) I felt to afraid to install it before realising the I already had it installed. Alas it no longer works in firefox 50.

However, this below https://addons.mozilla.org/en-US/firefox/addon/bookmarks-favicon-images/?src=search is on the Firefox official list of add ons, and, while a little less convenient perhaps than the former, it works on firefox 50.

1
  • Went there and it says it is not compatible with Quantum. – SDsolar Apr 5 '18 at 19:19
0

Answer for those with some SQL skills:

  • Stop Firefox (but first copy paste this as text to your editor)
  • Grab your favorite SQLite editor
  • Load the favicons.sqlite DB that you will find in your firefox profile.
  • For each of the problem sites execute:

    delete from moz_pages_w_icons where page_url like '%superuser.com%'
    
  • Save the DB

Restart firefox, the icons for the bookmarks will be the default icon (still better than the wrong one), and be restored to the correct icon as soon as you open the bookmark.

Firefox seems to clean off the orphan entries in the join table.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.