A small tool written in Python that de-duplicates bookmarks. Currently works with Firefox JSON bookmark export files.
As of this commit the tool works only on flat bookmark file structures (i.e. all your bookmarks are in the built in "Other Bookmarks" or "Mobile Bookmarks" folder). This message will self destruct once the tool learns how to traverse and prune nested directories.
python3 clean.py <bookmark_file>.json
- Support for nested folders (preserve hierarchy)
Tree View- Done!
Automatic file location search (default Firefox path)- Firefox stores bookmarks in a sqlite database and backups in a custom JSONLZ4 format. Please use the export function to create files to feed the tool.
Backup original list function- Script preserves original file instead
Rust impl?- Maybe one day
Chrome only exports bookmarks in HTML format. There is a workaround however to convert to JSON...
- Export Chrome bookmark HTML file.
- Using Firefox, import bookmarks (optionally into a separate profile).
- Export bookmarks from Firefox, choosing JSON format.
The de-duplicated list can be added back into Firefox, exported as HTML, and ingested by Chrome.