-For Linux:

sudo apt-get install sqlite3

Close Firefox

-For Firefox 3.0.*:

for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done

-For Firefox 3.5.*:

for f in ~/.mozilla/firefox-3.5/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done

-For Firefox 3.0.*:

#!/bin/sh

for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done

-For Firefox 3.5.*:

#!/bin/sh

for f in ~/.mozilla/firefox-3.5/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done

chmod +x speed_ff.sh

-For Windows

Before we get started, make sure you have sqlite3 installed. For Ubuntu:and run the following command in a terminal:I suggest you make it a script and then put it in startup so that it will optimize your SQLite databases on each computer startup. To do this, create a new file in your home folder, let's call it: speed_ff.sh, and paste this in the file:Then me have to make it executable. To do this, use the terminal to navigate to the folder where you created the speed_ff.sh file and:Now, to run the script on every startup, go to System > Preferences > Startup Applications, click "Add", in the NAME field enter whatever you want and in the COMMAND field enter the full path to the newly created speed_ff.sh file. Download IniFox which containts 2 files and extact the archive in the Firefox profile folder. The Firefox profile folder is in the following location: