Hi all,
just want to let you know IΒ΄ve come up with the solution of a βproblemβ regarding the entries in firefox history.
Perhaps it might also be of interest to someone else.
Well, firefox
provides the means for importing and exporting bookmarks. ThatΒ΄s a pretty well-known fact, I suppose.
I was looking for something similar for the history of already visited sites, too.
But thatΒ΄s not supported by firefox out-of-the-box. Perhaps thereΒ΄s a third-party add-on available for that, I donΒ΄t know.
Yet it can easily be done this way:
-
install
sqlite3
(in case itΒ΄s not already installed on your system)[In the following youΒ΄ll have to deal with an SQLite database file, and using a regular text editor wonβt provide a meaningful view of its contents.
In order to explore the data stored in the SQLite database, youβll need an SQLite database management tool] -
close all running firefox instances
-
copy firefoxΒ΄s
places.sqlite
file to some other location (itΒ΄s better to work with a copy of it since incorrect queries or modifications can potentially cause issues)The file can be found in your firefox profile folder (normally in your home directory):
.mozilla/firefox/[...].default
. -
From within the folder where you copied the
places.squlite
file to: issue the terminal command
sqlite3 places.sqlite "SELECT url FROM moz_places;" > history_urls.txt
Now you have a text file you can work with. It lists all sites you visited in in chronological order.
You can use the sort
command to get it in alphabetical order, if you want to.
Now, here comes a real advantage over accessing history from within the firefox browser itself:
Say you want to see the entries using more than just one search word, like two for example. Firefox itself would encounter difficulties performing such a task.
HereΒ΄s how I do it:
(this is a personal example, paths do vary in your systems, of course)
- hereΒ΄s my path to work with:
/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Sicherungen/Sicherungen_fΓΌr_jammy/history_urls.txt
-
I want to list the pages I visited looking for the Debian OS on the ventoy site
-
now I issue the following command within a terminal:
cat /media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Sicherungen/Sicherungen_fΓΌr_jammy/history_urls.txt | grep -i ventoy | grep -i debian
- and get the following result:
https://www.ventoy.net/en/distro_iso/debian.html
This procedure will work even more satisfactorily when using fish
as default shell as youΒ΄d just have to enter some meaningful clue-word (or part of it) and then βarrow upβ
and thereΒ΄s the command again. Like β_urlsβ, then βarrow upβ.
I suppose there are not many people around who have to watch their data consumption, but I do and for me itΒ΄s a convenient way to get the desired result in a jiffy without having to do some extended research over and over again.
Many greetings from Rosika