Can't restore jsonlz4 bookmarks
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.
Alle Antworten (4)
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.
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.
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:
- select "Enable browser chrome and add-on debugging toolboxes" in the Web Developer Tools settings
- https://firefox-source-docs.mozilla.org/devtools-user/settings/
- https://firefox-source-docs.mozilla.org/devtools-user/browser_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>");} }); })()
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.
Geändert am