From ba99abe2751f8deb0e2f464f2959811b0eb7b65d Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 19 Jan 2017 18:57:35 +0100 Subject: [PATCH] Add list-firefox-bookmarks --- list-firefox-bookmarks | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 list-firefox-bookmarks diff --git a/list-firefox-bookmarks b/list-firefox-bookmarks new file mode 100755 index 0000000..867c258 --- /dev/null +++ b/list-firefox-bookmarks @@ -0,0 +1,6 @@ +#!/bin/sh +# List Firefox bookmarks +places=~/.mozilla/firefox/*default*/places.sqlite + +# tags are parents with their parent = 4, so these have to be filtered +sqlite3 $places "select pl.url, b.title from moz_bookmarks as b join moz_bookmarks as pa on b.parent=pa.id join moz_places as pl on b.fk=pl.id where pa.parent != 4"