搜尋 Mozilla 技術支援網站

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

了解更多

Not importing bookmarks from HTML

  • 5 回覆
  • 2 有這個問題
  • 3 次檢視
  • 最近回覆由 axelrock

more options

I reinstalled Win 7 on my laptop. Before this, i saved my bookmarks using Export bookmarks to HTML, created the bookmark.html file, checked it with Edit and it was all there. So now after installing the fresh Win7, installed Firefox 9, updated it, and i'm trying to import the bookmarks. It opens the window, i click on the bookmark.html file, click Open and nothing happens. Nothing. I restarted the win, same thing. (the Win is up to date)

I reinstalled Win 7 on my laptop. Before this, i saved my bookmarks using Export bookmarks to HTML, created the bookmark.html file, checked it with Edit and it was all there. So now after installing the fresh Win7, installed Firefox 9, updated it, and i'm trying to import the bookmarks. It opens the window, i click on the bookmark.html file, click Open and nothing happens. Nothing. I restarted the win, same thing. (the Win is up to date)

被選擇的解決方法

Hi, that's not HTML, that's JSON. Did you save as a backup instead of exporting to HTML? You can restore that using the same dialog, but you will need to change the file extension to .json (lower case).

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

所有回覆 (5)

more options

I assume that you use this menu item:

  • Bookmarks > Show All Bookmarks > Import & Backup > Import Data from Another Browser

Do you see the bookmarks if you open the HTML file in Firefox via "Firefox > New Tab > Open File" ?

more options

I am using the item: Bookmarks > Show All > Import & Backup > Import from HTML. And after pressing Open, and exiting the bookmark library (like i'm supposes to) the bmarks still don't appear.

If i open the file via New Tab > Open file, i get only text, like this:

{"title":"","id":1,"dateAdded":1326123155006000,"lastModified":1328216394707000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1326123155006000,"lastModified":1339049877623000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Recently Bookmarked","id":4406,"parent":2,"annos":

And it goes on. This i believe means that it is not an error in my bookmarks.html file.

more options

選擇的解決方法

Hi, that's not HTML, that's JSON. Did you save as a backup instead of exporting to HTML? You can restore that using the same dialog, but you will need to change the file extension to .json (lower case).

more options

That is not an HTML backup, but a JSON backup (last modified: Thu 2 Feb 2012 20:59:54:707 GMT).

You can only use such a backup to replace all current bookmarks and can't merge them with the existing bookmarks like happens with an HTML backup.

To achieve that you will first have to export your current bookmarks to an HTML file and then reimport that HTML file after you've restored the JSON backup.

  • Bookmarks > Show All Bookmarks > Import & Backup > Restore > Choose File
more options

Whoa... thank you. I'm so relieved. It worked. I renamed it to .json , exported my current bmarks to hmtl, restored from file the .json, then imported from html, and all my bmarks are now like before.

So it was my mistake after all, although i cant see why. Before reinstalling, i saved backups in .json and .html format, but only saved the .html one (dunno why i forgot about the other one) and i didn't modify anything in it.

Anyways this means i gotta be more careful next time, and thanks for your time.