為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Can I use an upgrade.js file to get my session back?

  • 4 回覆
  • 1 有這個問題
  • 20 次檢視
  • 最近回覆由 amthomson

more options

I had a session with lots of tabs and had to restart my laptop. Absent-mindedly I opened a mozilla file of backed up bookmarks before I reopened the mozilla browser and was thus unable to restore the previous session. Is it possible to use an upgrade.js file to get my old session back?

I had a session with lots of tabs and had to restart my laptop. Absent-mindedly I opened a mozilla file of backed up bookmarks before I reopened the mozilla browser and was thus unable to restore the previous session. Is it possible to use an upgrade.js file to get my old session back?

被選擇的解決方法

To keep your options open, please back up everything in the sessionstore-backups folder to a neutral location Firefox won't overwrite. To preview the contents of a file, you can drag and drop it onto this tool:

https://www.jeffersonscher.com/res/scrounger.html

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

Hello click on the 3 line menu (also known as the Hamburger Menu) and then click on Restore Previous Session -- it is the 4th menu item on the list.

more options

You can copy a file from the sessionstore-backups folder to the main profile and rename the file to sessionstore.jsonlz4 to replace the current file (make sure to backup the current sessionstore.jsonlz4).

Firefox 56+ releases compress the files in the sessionstore-backups folder and sessionstore.jsonlz4 with LZ4 (.jsonlz4 instead of .js), so it is no longer easy to inspect them.

Firefox can still restore uncompressed sessionstore files, but to make this work you need to remove (rename) compressed files and rename the sessionstore-backups folder to ensure that Firefox can't fallback to compressed .jsonlz4 files.

more options

選擇的解決方法

To keep your options open, please back up everything in the sessionstore-backups folder to a neutral location Firefox won't overwrite. To preview the contents of a file, you can drag and drop it onto this tool:

https://www.jeffersonscher.com/res/scrounger.html

more options

Thanks for the offers of help. I managed to restore my tabs using the upgrade.js file from the sessionstore folder. If I'd used the recovery file from the main profile folder, I would've got a more recent set of tabs, but this option disappeared after I restored with the upgrade.js file.