The Firefox configuration file contains entries for core Firefox settings and extension settings. Most users know that it is possible to modify or add settings by typing about:config in the Firefox address bar. While the entries can be edited there, they can not be deleted.
The file tends to grow over time, largely because entries from uninstalled extensions do not get deleted during removal. Users who install and uninstall add-ons regularly may have a configuration file that is multiple times larger than the standard file.
That's usually not a problem, a large file might prolong the startup of the web browser by a bit though. Privacy is another issue as some extensions record visits pages or specific rules for websites in the preferences.
The preferences are stored in the prefs.js file in the Firefox user profile directory. You can locate it easily by loading about:support in Firefox's address bar. There you find an option to open the profile folder near the top of the page.
It is recommended to create a backup before making any changes to the file so that you can restore it if the need arises. Firefox needs to be closed before editing the prefs.js file as it is automatically saved when it is closed.
Each parameter is stored in a separate line. Many extensions use user_pref("extensions. in the beginning which makes identification easy, some however start directly with their own name.
The only viable option is to go through the configuration file and locate the extensions that are not installed anymore.
That's a tedious process but the only option at hand as there is no automation of the process available. A rule of thumb is to leave entries alone if they cannot be linked directly to extensions that have been uninstalled.
The size of the prefs.js file on the test system was 167 Kilobytes before spring cleaning. The first cleanup brought the file size down to 88 Kilobytes with room for more after some research.
Here are a few tips:
And this is how you delete about:config entries in Firefox.
It is really strange that no one ever build a Firefox preference cleaner that automatically removes old entries from the Firefox configuration file or that the developers have build that feature into the browser. How big is your file? Let us know in the comments.Advertisement
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.