Firefox: Open Multiple Websites With One Click

This is a small tutorial which I wrote by putting together some tips from Mozilla’s knowledge base. It takes only a couple of minutes and saves a lot of your valuable time.

Suppose you have 5-6 or more websites that you visit when you fire up your browser. What you’d normally do is that you would open a new tab manually for each site, then type in the address/select from your bookmarks. Pretty tedious, eh? In this tutorial, we’ll see how we can get Firefox to do the boring stuff for you. All you need to do is tweak a few settings, after which you can open tabs for all your must-visit-daily websites with ONE click. Sounds good? Let’s get our hands dirty, then.

  • Run Firefox, then go to Tools->Options. Note down the address in the home page field, in case you want to restore it later.

fx_01

  • Now all we need to do is type in the addresses of the sites you need to open in one go. Do it this way:

http://www.gmail.com|http://www.chelseafc.com|http://www.abhi247.com

  • All the addresses need to be separated using the pipe symbol – |. So now that you’ve put the addresses in the home page field, your settings should look something like this:

fx_02

  • Save the changes by clicking OK, then close the browser.
  • When you restart Firefox, it will open up a tab for each address that you typed in the home page field, if you have set Firefox to open your homepage on startup. That is not what we want, so we’ll make a few more changes.
  • Once again, open up the Options window and set Firefox to open a blank page when it starts.

fx_03

  • Click OK to close the Options dialog.
  • Now we come to the one-click part. Right-click on the Menu bar or any of the buttons. Select Customize from the popup menu.

fx_04

  • Drag and drop the Home button onto the toolbar.

fx_05

  • Your toolbar should now look something like this:

fx_06

  • That’s it! Close the Customize window and try clicking on the Home button on your toolbar.

fx_07

  • There you have it. Every single address opened in a new tab. And all you had to do was click the Home button.
  • This way, Firefox won’t run off to fetch all those webpages every time it starts and you can open all your favourite websites with one click!
    That brings us to the end of this little tutorial. Hopefully this would be useful to a lot of people.

Manually solve ‘empty cache after crash’ problem in Firefox

The Background:

Imagine that you have 400+ MB of Firefox’s cache brimming with websites that you visit regularly. If Windows crashes or the computer is not shut down properly while Firefox is still running, you WILL lose that cached data when you start Firefox again. Which basically means that every site you visit now will be downloaded all over again, since the cached files are no longer valid. If your computer has a nasty habit of crashing every now and then, or you run your computer in an environment devoid of a UPS and susceptible to frequent power outages, you will end up wasting a lot of bandwidth. And God help you if you are on a limited data transfer plan.

Why Does This Happen?

When you start Firefox it marks the cache as ‘dirty’ and when you close Firefox, the dirty bit is removed. So when Firefox is not properly closed, the cache remains tagged as ‘dirty’. Firefox checks the status of this bit on startup and when it sees the ‘dirty’ bit, it invalidates the entire cache and the cache is rebuilt from scratch, beginning from this session.

I have been plagued by this problem for a while now. Searching the Internet brought up vague results and recommendations to install an extension (which I haven’t been able to get installed till now). Then a few days ago I stumbled upon a post which actually explained the entire concept behind this behaviour. After reading this, I decided to write a tutorial on it.

Let’s Get Our Hands Dirty:

  • Frhed is a small, free and functional hex-editor that we will use for this tutorial. Download and install Frhed.
Download Frhed

Download Frhed

  • Now we need to locate the folder where Firefox has stored its cache. I am supposing that Windows is installed on the ‘C’ drive and that only 1 user-profile is being used in Firefox.
  • If you are using Windows XP, navigate to-

C:\Documents and Settings\<UserName>\Local Settings\Mozilla\Firefox\Profiles.

  • On Vista/Windows 7 machines, go to-

C:\Users\<UserName>\Local Settings\Mozilla\Firefox\Profiles.

  • Look for a folder that has the word ‘.default’ suffixed to it.
  • In that folder you will find a directory named ‘cache’. Open it.
  • Now look for a file named _CACHE_MAP_ in this folder.
Path to Firefox's cache

Path to Firefox's cache

  • Open this file with Frhed. It should look something like this:

_CACHE_MAP_ in Frhed

_CACHE_MAP_ in Frhed

  • Now in Frhed, go to the ‘Edit->Go To’ option. Type 15 and press Enter.
  • Why 15? Because the dirty bit is stored at that position in the _CACHE_MAP_ file.
  • If Firefox is currently running or was not closed properly, the value at this position will be 01.
The bits to be altered

The bits to be altered

  • As you can see in the image, the value at this position is 01, which indicates that the cache is currently marked as dirty. To change this, simply replace the 01 with 00 and save the file.
  • Now start Firefox and try opening any of the sites you regularly visit. They should open normally without the whole content being downloaded off the server, which is exactly what we wanted. :)
  • To make things even simpler, I’d suggest that you create a shortcut to the _CACHE_MAP_ file on your desktop so that you don’t have to go through the maze of folders to reach it again. ;)

So there you have it. By investing no more than a couple of minutes every time Firefox is not closed properly, you can save yourself a lot of bandwidth and time. :D