This project provides a script for converting pinned tabs in the Zen Browser to standard HTML bookmarks file. These bookmarks can then be imported into any web browser.
This addresses the lack of a pinned tabs export feature in Zen Browser.
Warning
Tested on Zen v1.16t
Copy and paste the contents of main.js into the Browser Console.
Important
Set devtools.chrome.enabled to true in about:config
The Browser Console can be accessed via:
- Command ⌘ + Shift ⇧ + J on Mac
- Ctrl + Shift + J on Linux/Windows
- Discover Workspaces – Scans all open tabs and Zen‑folder groups, extracting the zen‑workspace‑id attribute to identify each distinct workspace.
- Collect Bookmark Data – Builds a workspace‑specific map that separates:
- Essentials (tabs marked zen-essential="true")
- Pinned tabs that are not inside a folder
- Tabs inside Zen‑folders, grouped by folder name
- Build Hierarchical Bookmark Trees – For each workspace, converts the collected data into a nested bookmark structure (folders → items) ready for HTML conversion.
- Generate & Download Bookmark Files – Creates a Netscape‑Bookmark‑file‑HTML for every workspace, timestamps the filename, and automatically triggers a download so the file can be imported into any browser.