100+ tabs mean Firefox session restore from backup doesn’t work

But there's still a way of rescuing all that crap you've accumulated.

Trebots @ Thursday April 7th 2011 09:57

Umbach print of you - yes YOU - from the British Museum More pics.

I didn't realise I had that many tabs open, though the boat had been getting pretty slow. The instructions at Mozilla are good for less serious hoarders, but if they don't work for your mammoth collection then it's easy either to split your session into two (Hello, Diogenes!), or just to extract the URLs. The latter goes as follows:

  • Don't restart Firefox or you'll lose the lot.
  • Find your profile folder.
  • Copy sessionstore.bak (which is probably around 500kB by now) to somewhere else.
  • Open the copied file with Notepad++, a brilliant open source code editor.
  • Open Replace (Ctrl+H).
  • Select Regular Expression (bottom left).
  • Replace "url":"http:// with \r\nhttp://
  • Replace ","title":" with \r\n". The lines you don't want now start with "
  • Replace ["].* with nothing.
    Mark's got more on using regular expressions with Notepad++.
  • Get rid of the single opening bracket at the beginning of the file.
  • Throw away the crap, file the rest, and promise to be more responsible in the future, or may your preferred deity smite you down and run off with your savings.
  1. Mao Llibson
    April 7th 2011 10:16

    Don't know if it applies to restore, but Opera generally handles big loads of tabs way, way better than Mozilla.

  2. Tom
    April 7th 2011 12:33

    ...Or just switch to Chrome.

  3. Trebots
    April 7th 2011 14:10

    Got 100 in Chrome, too.


Back to top