How to add (or restore) Smart Bookmark folders in Firefox

Posted:

Background

Smart Bookmark folders were added back in Firefox 3, after it switched from RDF to SQLite database , with Places system acting as a way for Firefox's front-end to interact with the database and manage the bookmarks.

This feature was present up until Firefox 63, where the folders are no longer created for new installs and profiles. Even the preference meant for restoring those folders is now gone.

Despite that, the Places query still works, so let's figure out how to add the smart bookmarks.

Add a bookmark

Since it is called Smart Bookmark, we need to add one in order for this to work:

  1. Press Ctrl/Cmd + Shift + B to open the bookmark toolbar
  2. Right click on the toolbar
  3. Click "Add Bookmark..."

The URL field is where the magic begins.

Most Visited

place:queryType=0&sort=8&maxResults=30

Recent Tags

place:type=6&sort=14&maxResults=10

Recent Bookmarks

place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&excludeItemIfParentHasAnnotation=livemark%2FfeedURI&maxResults=10&excludeQueries=1

Reference