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.
I had to set "browser.bookmarks.file" to "bookmarks.html". When omitting it, no file seems to be written.
https://github.com/josh-berry/tab-stash
and unlike some other tab management extensions, it uses native bookmarks to store things which means you can still access the stashed tabs if you sync them to firefox mobile
That's what I think we need is a way to save the whole session of the tab. Not just the last page. Or maybe a way to graph multidimensional browsing history.
My favorite feature is being able to save all tabs within a window, send a link to a co-worker, and have them open up all the tabs. It takes like 5 secs, end to end.
Best of all: if they have the histre extension as well, they can instantly open all the tabs at once and even see my highlights - it’s like being able to send a browser window state to another person!
Bookmarks are too primitive imho. It is typically treated as just one link. It is useful to know the whole context around that. How did you get there? What else where you researching? Histre saves all that for you in a tree-style history.
On the other end of the manual work spectrum is elaborate note-taking about everything ("second brain"), keeping that organized enough to be useful etc, which takes too much time for nebulous benefit.
Histre takes care of all your knowledge management needs without making you do busywork.
you can set it to show/hide, but also to "Only show on new tab" which I use. That way I don't lose screen space, but and CMD+T (Ctrl+T on non-mac) will show my most important bookmarks in the bar right away.
edit: It seems that if your new tab is set to 'blank page' it doesn't work, the default "firefox home' works though. For...reasons.
It was something like:
SELECT url FROM moz_places WHERE id IN (SELECT fk FROM moz_bookmarks)
You can find more info on that database here: https://wiki.mozilla.org/Places/Places_SQL_queries_best_prac...You lose the names, the folder structure, the order and the keywords.
The HTML format FireFox can create is so nice, that for now I am willing to manually book them up to get that. Until someone can come up with a way to automate it.
sqlite3 -json /tmp/places.sqlite '\
SELECT p.url, b.title, (SELECT f.title FROM moz_bookmarks f WHERE fk IS NULL AND f.id=b.parent) AS folder \
FROM moz_places p \
INNER JOIN moz_bookmarks b ON b.fk=p.id \
ORDER BY b."dateAdded"'
The full folder structure might be a bit more complex to get, I only have them on the top level and can’t experiment. Not sure what the keywords, never used such a thing.I only rely on the title, and I’ll extract the text content of the link for a full text search through it because usually I’ll remember something from the contents and will try to search that instead of something from the title. I can’t predict what I’ll remember.
Right-Click on one of the open tabs, click "select all tabs", right-click it again and click "Bookmark Tabs"
Also, individual tabs can be added to the selection by Ctrl-Clicking them.I've written a Perl script that print bookmarks from Safari/Firefox/Chrome/Edge as <title><url><description>, but maybe it's too raw.
https://github.com/kal247/App-bookmarks
I might add other formatting options (HTML or Template Toolkit) if there's enough interest.
I think a solution can be easily scripted seeing as firefox stores its internal data in multiple sqlite files.
How? Maybe you're talking about Mac's global menu bar?
Similarly the ampersand search in history.
We have nearly abandoned menu as UI elements because a CLI-alike search&narrow UI is better in general, just file managers remain lagging behind with their crappy UI...
What I do miss is a way to back them up from the command line. Firefox has a nice "Export Bookmarks to HTML" function, but it seems only available from the GUI, so there is no way to automatically backup the bookmarks in this nice format. I tried for a while to extract them from the SQLite DB FireFox stores them in, but the layout of that DB is pretty complex and bloated. Even after a bit of fiddling, I wasn't sure I really correctly got the data out.