Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Can't restore jsonlz4 bookmarks

  • 4 trả lời
  • 0 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi Ma W

more options

I had to reset my PC without being able to back it up first. I found the saved bookmark jsonlz4 files in the Windows.old folder and tried using Import and Backup in the bookmarks manager, but the bookmarks wont load. I tried https://www.jeffersonscher.com/ffu/bookbackreader.html to convert the file to json but that wouldn't load either. I even tried converting the file to HTML and import that way without success. It gives me the notification that restoring will replace all my current bookmarks, but nothing happens after that.

I'm at a loss as to what to do. How can I restore my bookmarks? I'm on Windows 10.

I had to reset my PC without being able to back it up first. I found the saved bookmark jsonlz4 files in the Windows.old folder and tried using Import and Backup in the bookmarks manager, but the bookmarks wont load. I tried https://www.jeffersonscher.com/ffu/bookbackreader.html to convert the file to json but that wouldn't load either. I even tried converting the file to HTML and import that way without success. It gives me the notification that restoring will replace all my current bookmarks, but nothing happens after that. I'm at a loss as to what to do. How can I restore my bookmarks? I'm on Windows 10.

Tất cả các câu trả lời (4)

more options

Did you try to open the HTML backup created by the bookbackreader tool in a tab ? Does it show any bookmarks present in the file ? Did you try an earlier backup ?

The name of automatically created JSON bookmark backups in the bookmarkbackups folder includes a total item count (folders and separators included) and an hash value to prevent saving the same backup more than once. You also see this count in the Restore menu drop-down list.

  • bookmarks-YYYY-MM-DD_<item count>_<hash>.jsonlz4.
more options

When I open the HTML backup in a tab I don't see any bookmarks in the file. There weren't any backups of bookmarks in the "Import and Backup" because of having to reset my PC. But, I'm able to successfully create a new backup of bookmarks and restore them.

more options

I posted code to use with the Browser Console to decompress a compressed file in another thread.

To enable the command-line in the console:


javascript:/*(DE)COMPRESS LZ4::2023/10-14*/
(function(){
/*IOUTILS - [80]*/
async function copyFile(inpFile, outFile) {
  var data = await IOUtils.readUTF8(inpFile, /lz4$/.test(inpFile) ? {decompress:true} : {decompress:false});
  await IOUtils.writeUTF8(outFile, data, /lz4$/.test(outFile) ? {compress:true} : {compress:false});
}
var fu = Cu.import("resource://gre/modules/FileUtils.jsm").FileUtils;
var fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
fp.init(window, "Open File", Ci.nsIFilePicker.modeOpen);
fp.appendFilter(".JSON Uncompressed Files","*.json");
fp.appendFilter(".*LZ4* Compressed Files","*.*lz4");
fp.displayDirectory=fu.File(PathUtils.join(PathUtils.profileDir,""));
fp.open((aResult)=>{
if (aResult==Ci.nsIFilePicker.returnOK){
if(fp.file.exists()&&fp.file.isFile()&&fp.file.isReadable()){
var inpFile=fp.file.path;
var outFile=inpFile.replace(/lz4$/i,"")+(/lz4$/.test(inpFile)?"":"lz4");
//prompt(inpFile+"\n"+outFile);
try{
copyFile(inpFile, outFile);
console.log("Saved as: \"file://" + outFile + "\"");
prompt("Saved as:\n" + outFile,"file://" + outFile);
}
catch(err){console.log(err);}
}
}else{console.log("<canceled>");}
});
})()

more options

Thank you for your response. Unfortunately, I'm still getting the same result where the bookmarks wont load. When I attempt to restore them I see the bookmarks bar flash for a moment as though they are about to be loaded but they don't.

Được chỉnh sửa bởi Ma W vào