How to save tab memory state in Firefox / Chrome?

I want to save the state of tabs in Firefox or Google Chrome so that I can restore it later by writing a custom add-on / plugin / extension.

The closest I can find is the Firefox Session Storage API , which can save form data and scroll position. However, I want to keep Javascript state as well. Also, if possible, I want to be able to restore the page, even if the website is no longer available. It would be better if there was a way to preserve the entire analyzed resource / data structure.

Is this possible for any of the major browsers?

+8
firefox google-chrome gecko webkit tracemonkey
source share
3 answers

Try using Session Buddy: https://chrome.google.com/webstore/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko . I have been using it for a while, and it does exactly what you are talking about, and much more.

+2
source share

Just serialize everything you need to restore the state of the page in localStorage (it is constant, unlike sessionStorage) and calls the appropriate deserialization function on your DOMContentLoaded (or load) event handler.

0
source share

I'm trying to do the same thing: keep the current state of several tabs (which probably means hundreds of months of local storage). Help would be much appreciated

-one
source share

All Articles