We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

How to recover bookmarks?

  • 4 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 rstuffx

more options

I tried to upgrade Firefox from version 7 to version 24 but it crashed. I uninstalled the old Firefox and installed the new. I forgot to backup the bookmarks but I was able to recover several backups using Recuva. The backups have data in them when I look at them in Notepad. I am able to restore a bookmark that was automatically saved yesterday but not the ones that I restored. I copied one of them to my profiles and tried restoring it and I get the message "unable to process backup file". I tried restoring from a filename on another drive and I didn't get the message but I didn't see any bookmarks either. I have found many instances of this problem and I tried deleting the places.sqlite file and restarting Firefox with no luck. When I look at the profile it has a check mark in the read only box that looks grayed out. I uncheck the box but it keeps coming back. I am able to restore new backups. When I restore from a filename it deletes all my bookmarks. This is on a Windows Vista Toshiba laptop. Any suggestions?

I tried to upgrade Firefox from version 7 to version 24 but it crashed. I uninstalled the old Firefox and installed the new. I forgot to backup the bookmarks but I was able to recover several backups using Recuva. The backups have data in them when I look at them in Notepad. I am able to restore a bookmark that was automatically saved yesterday but not the ones that I restored. I copied one of them to my profiles and tried restoring it and I get the message "unable to process backup file". I tried restoring from a filename on another drive and I didn't get the message but I didn't see any bookmarks either. I have found many instances of this problem and I tried deleting the places.sqlite file and restarting Firefox with no luck. When I look at the profile it has a check mark in the read only box that looks grayed out. I uncheck the box but it keeps coming back. I am able to restore new backups. When I restore from a filename it deletes all my bookmarks. This is on a Windows Vista Toshiba laptop. Any suggestions?

被采纳的解决方案

I found a JSON file fixer at http://jsonformatter.curiousconcept.com/. I pasted my JSON file into it and ran it and it told me that I had an unexpected comma. The extra comma was clear down at the end of the file before the last closing bracket. I edited it out using Notepad, restored it and all my bookmarks are back. I should go back and check my other backups and see if they had the exact same problem. Would like to know how the extra comma got there.

定位到答案原位置 👍 0

所有回复 (4)

more options

First, it's normal that when you restore a .json backup file it completely replaces your existing bookmarks. To preserve existing bookmarks, before restoring a backup, use the export to HTML feature. You can import from the HTML format without losing bookmarks.

Now... what to do about the corrupted .json files you recovered. Because the format is hard to read, it may be difficult to repair adequately. This has come up in other threads, and I can't recall seeing a good tool to do it. Hopefully someone else will have a suggestion other than visiting all the links in the file and bookmarking them from scratch.

more options

Note that Windows shows a green block for folders in the Read-only box, but not a real check-mark.
Only a check mark in the Read-only box means that a folder or file is Read-only.
Windows doesn't check all the files in a folder so instead displays a green block to indicate that it is not sure.

A JSON backup is a text file, so if the file contains other character apart from readable text then the file is corrupted and Windows probably has used some clusters to store other data.
Repairing such a damaged JSON file is almost impossible (a cluster is 4 KB and you would need to fix all missing closing '}' and ']' to make Firefox pickup the remainder of the file).
The only possibility is to extract http(s) links from such a file with an editor that knows about regular expressions or use the below posted bookmarklet in Firefox.

You can try to open the JSON backup in a Firefox tab and run this JavaScript bookmarklet code.
You need to create a new bookmark and paste the JavaScript code in its location field.

javascript:(function(){var E=document.getElementsByTagName('pre')[0],T=E.innerHTML,R=/("uri":"([^"]*)")/g,i=0,r1,r2,t;t=[];while(R.test(T)){r1=RegExp.$1;r2=RegExp.$2;if(/^(https?|ftps?):/i.test(r2)){t.push('['+(i++)+']:<a href='+r2+'>'+r2+'<\/a>');}}with(window.open().document){write(t.join('<br>\n'));close();}})();
more options

Thank you. The javascript gave me a list of my bookmarks so now all I have to do is bookmark each one of them individually. I have pages of bookmarks. I should probably do this anyway to organize them and remove the old ones.

more options

选择的解决方案

I found a JSON file fixer at http://jsonformatter.curiousconcept.com/. I pasted my JSON file into it and ran it and it told me that I had an unexpected comma. The extra comma was clear down at the end of the file before the last closing bracket. I edited it out using Notepad, restored it and all my bookmarks are back. I should go back and check my other backups and see if they had the exact same problem. Would like to know how the extra comma got there.