They are simmilar questions like follow already, with solutions, for older Firefox versions:
- How to get the URL from a firefox tab from the terminal?
- Get URL of current active tab from Firefox via command line
What is different on actual Firefox versions like p.e. 82.x and newer:
- no
sessionstore.jslocated in~/.mozilla/firefox/*.default/sessionstore.js - no
recovery.jslocated in~/.mozilla/firefox/*.default/sessionstore-backups/recovery.js
How to get the url of actual active Firefox tab from actual active workspace on debian or ubuntu, output by bash like follow ?
echo $actual_url
Remark: "The following files are used to store session data:
sessionstore.jsonlz4 - The state of the browser during the last shut down.
sessionstore-backups/recovery.jsonlz4 - The current state of the browser
sessionstore-backups/recovery.baklz4 - The previous version of recovery.jsonlz4
sessionstore-backups/previous.jsonlz4 - The state of the browser during the second to last shut down.
sessionstore-backups/upgrade.jsonlz4-[timestamp] - The state of the browser before an upgrade"
Source: https://www.foxtonforensics.com/blog/post/analysing-firefox-session-restore-data-mozlz4-jsonlz4
Jsonlz4 formats: https://superuser.com/questions/1363747/how-to-decode-decipher-mozilla-firefox-proprietary-jsonlz4-format-sessionstor
how to open jsonlz4 file on Linux by sudo apt install lz4 lz4json https://superuser.com/questions/1363747/how-to-decode-decipher-mozilla-firefox-proprietary-jsonlz4-format-sessionstor
It can be the mozilla used jsonlz4 format is not realy a standard format: https://bugzilla.mozilla.org/show_bug.cgi?id=1209390