MozillaZine


Some questions about the Bookmark file

Discussion of general topics about Mozilla Firefox
ineuw

User avatar
 
Posts: 730
Joined: March 19th, 2006, 4:17 pm
Location: Québec, Canada

Post Posted August 8th, 2022, 4:11 pm

What is the size limit of the Firefox Bookmarks?

What can cause corruption of the files?

Which is the preferable archive HTML or JSON?

I also noticed that Chrome/Chromium/Vivaldi all readily import Mozilla HTML format for their bookmarks. Is it a standard?

Thanks for any info.
Firefox 104.0.2 in Linux Mint 21 Cinnamon 64 bit - updated on 2022-09-20 17:23

lenny2
 
Posts: 56
Joined: June 8th, 2022, 3:10 am

Post Posted August 8th, 2022, 10:55 pm

ineuw wrote:Which is the preferable archive HTML or JSON?
The HTML bookmark file can be imported into any browser, and the imported bookmarks are added to existing bookmarks (old bookmarks + bookmarks from the import will be there).
JSON file is a proprietary format of Firefox, it cannot be used with other browsers. Restoring bookmarks from JSON completely replaces existing bookmarks (will be only bookmarks from json).
Also bookmarks are contained in file places.sqlite, this file can be used for backups/recovery of bookmarks.
favicons.sqlite - bookmark icons.

BruceAWittmeier

User avatar
 
Posts: 2960
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Post Posted August 9th, 2022, 6:04 am

ineuw wrote:What is the size limit of the Firefox Bookmarks? Don't know if there is one - I have a 20MB bookmarks file.

What can cause corruption of the files? I suspect lots of possibilities - not shutting down properly

Which is the preferable archive HTML or JSON? - HTML - you can view your bookmarks.html file in your browser

I also noticed that Chrome/Chromium/Vivaldi all readily import Mozilla HTML format for their bookmarks. Is it a standard? HTML is most universal

Thanks for any info.


There are a couple options to clean up a bookmarks.html file

Tidy - Free utility to clean up html code
https://www.w3.org/People/Raggett/tidy/

Validator - accepts HTML and validates the syntax - displays errors and description on how to fix
For local files use Validate by Direct Input tab specifying the path to your bookmarks.html file
https://validator.w3.org/

KompoZer - Free program to build html web pages - has an IDE Design Mode editor (view as the browser should display) and - it also will force corrections each time a file is loaded if the file contains errors. It will not tell you what the errors are. Also has Source tab (at bottom right) to view the raw HTML.
https://sourceforge.net/projects/kompozer/

Composer in SeaMonkey - Displays the HTML file as a series of links - also has in the Menu View > HTML - I am not too familiar with this program.
https://www.seamonkey-project.org/releases/

Geany - Free HTML editor - I am not too familiar with this program
https://www.geany.org/


I frequently backup my bookmarks using HTML with the Firefox menu option and append the date to keep a few copies for safety.

My recommendation is save Bookmarks as HTML.
I recommend KompoZer - I have used it for about 20 years and is very reliable.
The way I use KompoZer is install the program. Once installed you can drag/drop an html file onto the Icon and it will start the program and load the file.
I then save the file adding Kom to the file name to identify it has been cleaned.
You can then delete all your bookmarks in Firefox Bookmarks menu completely and import the bookmarksKom.HTML to restore the corrected file.
My parents moved when I was 5. I found them in California when I was 9.

ineuw

User avatar
 
Posts: 730
Joined: March 19th, 2006, 4:17 pm
Location: Québec, Canada

Post Posted August 9th, 2022, 2:31 pm

Many thanks to everyone for the gems of knowledge.
Firefox 104.0.2 in Linux Mint 21 Cinnamon 64 bit - updated on 2022-09-20 17:23

Return to Firefox General


Who is online

Users browsing this forum: No registered users and 1 guest