How To Remove Favicons In Firefox Bookmarks

Martin Brinkmann
May 11, 2009
Updated • Jul 12, 2017
Firefox, Image
|
13

Favicons are those tiny little icons that are displayed in front of every bookmark and tab in the Mozilla Firefox web browser.

They can be used to identify a website next to the website title that is also always shown.

There are two core reasons why someone would want to remove favicons in the Firefox web browser.

The first reason is size. Bookmarks with favicons can take up to 10 times as much space on the computer hard drive than those without. While a difference between 3 Megabyte and 300 Kilobyte does not look like much it can make a difference especially in very large bookmark collections.

The second concern is privacy related as new favicons are requested by the web browser from the website itself.

The following article outlines a two-step process to remove existing Firefox favicons and to block new ones from being created. It is recommended to backup all files that are mentioned in this article prior to making the necessary changes.

1. Firefox settings

The first step is to change settings in the about:config dialog of the Firefox web browser. Simply load about:config in the Firefox address bar and filter the list for the term browser.chrome. Change the following three parameters to the following values:

  • browser.chrome.favicons - False
  • browser.chrome.image_icons.max_size - 0
  • browser.chrome.site_icons - False

You change values with a double-click on the value field.

This step does not get rid of existing bookmark favicons though but prevents the creation of future favicons in Firefox.

2. Removing existing favicons

Press Ctrl-Shift-B, select Import and Backup from the toolbar and pick Export HTML. This will save a copy of the bookmarks as a file to the local desktop. Open that HTML file in the web browser and run the following bookmarklet to remove all Firefox favicons from it.

javascript:(function(){%20var%20ls=document.getElementsByTagName('*');%20for%20%20(var%20i=0;%20i<ls.length;%20i++)%20{l=ls[i];%20l.removeAttribute('id')%20;%20l.removeAttribute('last_charset');%20l.removeAttribute('icon');%20%20l.removeAttribute('last_modified');%20l.removeAttribute('last_visit');%20%20l.removeAttribute('add_date');%20l.removeAttribute('personal_toolbar_folder')%20;}%20alert('Cleanup%20Complete%20-%20Save%20as%20Web%20Page,%20%20Complete')})();

You can drag and drop the bookmarklet to the favorites or copy and paste it into the Firefox address bar to execute it.

Save the page again with the shortcut Ctrl-s and make sure you save it under the same name. Now close the Firefox web browser. We need to remove the old bookmark files from the Firefox profile folder. Here is the location of the Firefox profile folder on various operating systems:

Linux: ~/.mozilla/firefox/xxxxxxxx.default/
Mac OS: ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/
Windows 98 / ME: C:\WINDOWS\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\
Windows Vista / XP: %APPDATA%\Mozilla\Firefox\Profiles\xxxxxxxx.default\

Locate the active Firefox profile. Remember to backup places.sqlite. Now delete places.sqlite and all .json files in the bookmarkbackups subfolder. Restart Firefox. You will notice that all bookmarks are gone. Use Ctrl-Shift-B again to load the library. Select Import and Backup again. This time pick Import HTML and load the previously edited html file.

The bookmarks will be loaded into Firefox. You might need to arrange them again but all favicons should be gone for good.

Summary
How To Remove Favicons In Firefox Bookmarks
Article Name
How To Remove Favicons In Firefox Bookmarks
Description
Find out how to remove all favicons from bookmarks in Firefox and prevent the generation of new favicons when you add new bookmarks in the browser.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Ken Saunders said on January 27, 2014 at 10:28 am
    Reply

    I read your article for JPEG & PNG Stripper (tried the program), and that seems to work pretty well.

    I don’t use (as far as I know) any of CNET’s sites or services any longer.

    Metability Software’s website >
    Metability ® QuickFix for Microsoft Windows® ( previously known as FileMind® QuickFix)
    http://www.metabilitysoftware.com/products/metability-quickfix.html

    I downloaded it, but I haven’t installed it.

    Thanks for the info and article.
    See, I don’t just come here for the Firefox content.

    One more thing, I like being logged in here and not having to fill in info to comment. :)

    1. Martin Brinkmann said on January 27, 2014 at 2:30 pm
      Reply

      The reason why I did not post the site link directly was that Bitdefender blocked the site for me. That’s also the reason why I wrote today’s second article, ha ;)

      1. Ken Saunders said on January 27, 2014 at 2:43 pm
        Reply

        LOL

  2. GK said on January 27, 2014 at 9:45 pm
    Reply

    I use Imagemagick’s Mogrify from the command line.

  3. Design Instinct said on January 28, 2014 at 6:56 pm
    Reply

    Photo Demon is a cool portable image editor/batch processor. It has a default setting in options to strip some or all of the EXIF data. Once set, you don’t have to remember to strip your data each time.

    http://photodemon.org/

    Version 6.2 is coming out soon. You can test out the beta. He’s getting rid of the MDI interface.
    Also going to be fixing a bug with high DPI mice. 6.2 crashed on me due to this.

    6.0 is rock solid though. Very nice program.

    Martin, you may want to review it.

  4. ozone333 said on February 1, 2014 at 6:02 pm
    Reply

    The download link from CNET only provides a stub installer. The way I used to get the actual file without the stub installer was to go to http://www.metabilitysoftware.com/products/metability-quickfix.html .

  5. webfork said on May 24, 2015 at 10:08 pm
    Reply

    FileOptimizer also zaps JPEG and PNG metadata: https://www.ghacks.net/2012/09/04/reduce-file-sizes-without-quality-loss-with-file-optimizer/ … as well as cutting down dramatically on file size.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.