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.

Umbach print of you - yes YOU - from the <a href='http://www.britishmuseum.org/research/search_the_collection_database/search_object_details.aspx?objectid=1504121&partid=1&searchText=diogenes&fromADBC=ad&toADBC=ad&titleSubject=on&physicalAttribute=on&numpages=10&images=on&orig=%2fresearch%2fsearch_the_collection_database.aspx&currentPage=1'>British Museum</a>

Umbach print of you - yes YOU - from the British Museum

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.

Similar posts


Comments

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

Your email address will not be published. Required fields are marked *