Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I back up my saved games that are stored in Local Storage?

  • 8 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Fleet Command

more options

Hi. I intend to refresh my Firefox profile but there is one thing I cannot afford to lose: I've been playing a web game for a while now and it saves its state in the Local Storage. I've even been able to peek into it using the Developers Tool. But I need to back up this info and restore it once the profile is reset. There are dozens of keys with a hierarchical values for each. (I am guessing arrays or hashed lists.)

Is it possible?

Hi. I intend to refresh my Firefox profile but there is one thing I cannot afford to lose: I've been playing a web game for a while now and it saves its state in the Local Storage. I've even been able to peek into it using the Developers Tool. But I need to back up this info and restore it once the profile is reset. There are dozens of keys with a hierarchical values for each. (I am guessing arrays or hashed lists.) Is it possible?

被采纳的解决方案

Some DOM storage pieces are in the webappsstore.sqlite file. It's a bit difficult to search due to the reversed host names.

定位到答案原位置 👍 1

所有回复 (8)

more options

I would recommend to check with their FAQ game saves.

more options

You can do a test and create a new profile with the Profile Manager and copy the content of this specific storage folder to the new profile once this folder has been created again to see if that picks up this data. I don't know if it is possible to backup this data otherwise.

more options

As a footnote to the above, the data is most likely under:

[profile folder]\storage\default\website

More info on profiles: Profiles - Where Firefox stores your bookmarks, passwords and other user data

more options

jscher2000 said

As a footnote to the above, the data is most likely under: [profile folder]\storage\default\website

It does not seem to be. For test, I created three pieces of data for this page in Local Storage: "Test", "Test 2" and "Test 3". Then I deleted this folder that you mentioned. But those test data are still there.

由Fleet Command于修改

more options

What does the Storage Inspector show?

more options

选择的解决方案

Some DOM storage pieces are in the webappsstore.sqlite file. It's a bit difficult to search due to the reversed host names.

more options

cor-el said

What does the Storage Inspector show?

See the attachment. Of course, the web game's storage has a great deal more keys containing my character names, their traits and a lot of embarrassing details I won't be posting here. The web game adds cryptographic hash to the data, so they cannot be changed.

more options

jscher2000 said

Some DOM storage pieces are in the webappsstore.sqlite file. It's a bit difficult to search due to the reversed host names.

Found them. They were in the webappsstore.sqlite file. Copying this file over to a new profile creates the saved games. I used DB Browser to modify this file as was necessary.

Thanks

由Fleet Command于修改