Saving tabs in a text file - Part 2 0 ▲ Lazybear 2 hours ago · Tech · hide · 0 comments Almost two years ago, I wrote about saving tabs in a text-file. Yesterday, Flamed tooted about open tabs that he has read, bookmarked, and closed. I have an issue with open tabs. Often, my browser has over a thousand of tabs opened that “I’ll read later”. The original method was to use bookmarks. The new one reads directly from sessionstore-backups/recovery.jsonlz4. For work, I have an Macbook, so I added also support for Linux and OSX. If you have multiple Mozilla profiles, it will get the latest modified file. And, finally, a small part of python to decompress Mozilla’s LZ4 block format of the recovery.jsonlz4 file. So, I made this script: #!/usr/bin/env bash set -euo pipefail # Export all open Firefox/Librewolf tabs to markdown # Usage: ./firefox-tabs-export.sh [output.md] OUTPUT="${1:-firefox-tabs.md}" # Find most recently modified session file across all profiles SESSION_FILE="" if [[ "$OSTYPE" == "linux-gnu"* ]]; then FILES=() while IFS= read -r -d '' file; do FILES+=("$file")… No comments yet. Log in to reply on the Fediverse. Comments will appear here.