News for hackers. Stuff that matters.
Re:Ask HN: Why are bookmarks second class citizens in browsers? by forgotpwd16 on Thursday August 18, 2022 @04:07AM (#32506713)
>so there is no way to automatically backup the bookmarks in this nice format

Firefox automatically backs up current bookmarks in lz4-compressed json under $profiledir/bookmarkbackups ($profiledir by default being like ~/.mozilla/firefox/xxxx.default). Can also autoexport to an HTML file by setting the following about:config prefs:

    browser.bookmarks.autoExportHTML => (boolean) true
    browser.bookmarks.file => (string) "/home/user/bookmarks.html"
If later pref is omitted then file will be $profiledir/bookmarks.html.

An issue with depending on this functionality is the backup happens when closing the browser.

Re:Ask HN: Why are bookmarks second class citizens in browsers? by mg on Thursday August 18, 2022 @04:50AM (#32506963)
Yay, this is beautiful!

I had to set "browser.bookmarks.file" to "bookmarks.html". When omitting it, no file seems to be written.

Re:Ask HN: Why are bookmarks second class citizens in browsers? by MasterYoda on Thursday August 18, 2022 @08:38AM (#32508756)
I may misunderstand! But how often is the bookmarks autoexported to html? Can you set the interval also?
Re:Ask HN: Why are bookmarks second class citizens in browsers? by forgotpwd16 on Friday August 19, 2022 @10:46AM (#32521641)
When closing the browser which may be an issue if someone keeps it always open.