nongnu.org

About

BookmarkFS is a FUSE-based pseudo-filesystem which provides an interface to the bookmark data of web browsers.

Currently, the following browsers (and their derivatives) are supported:

  • Firefox
  • Chromium

BookmarkFS is free software, distributed under the terms of the GNU General Public License, either version 3, or any later version of the license.

Example Usage

#!/bin/sh
# Mount Firefox bookmarks.
# - Replace <profile-name> with the actual profile directory name.
mount.bookmarkfs -o backend=firefox,rw  \
        ~/.mozilla/firefox/<profile-name>/places.sqlite  \
        /mnt/firefox
# Change working dir into Firefox's "Other Bookmarks" directory.
cd /mnt/firefox/bookmarks/unfiled
# Remove duplicate bookmark URLs (while keeping the first one).
# - Install "fdupes" using your distro's package manager,
#   or download from <https://github.com/adrianlopezroche/fdupes>.
fdupes -dN .
# Move all bookmarks of GNU software into the subdir named "GNU".
find . -maxdepth 1 -type f  \
        -exec grep -l www.gnu.org/software {} \;  \
        -exec mv {} ./GNU \;
# Mount Chromium bookmarks.
mount.bookmarkfs -o backend=chromium,rw  \
        ~/.config/chromium/<profile-name>/Bookmarks  \
        /mnt/chromium
# Copy the "work" directory from Firefox's bookmarks toolbar
# into Chromium's bookmarks toolbar.
cp -R /mnt/firefox/bookmarks/toolbar/work  \
        /mnt/chromium/bookmarks/Bookmarks\ bar
# Dismount.
umount /mnt/chromium
umount /mnt/firefox

Read the original on nongnu.org ↗