有没有办法以可读的方式将活动 URL (在 firefox 中)记录到磁盘?

Is there any way to log the active URL (in firefox) to disk in a readable manner?

我正在寻找输出(或以其他方式读取)当前活动的 URL (window.location.href) 来自 firefox(开发版以防万一),以从 bash 脚本。到目前为止,我已经考虑过使用 recovery.jsonlz4 和 places.sqlite,但都没有给我具体的当前 URL,我也考虑过使用 cookie 或本地存储,但是脚本都无法读取(因为我无法在二进制缓存中轻松找到它)。最好的方法是什么?

TabFS (https://omar.website/tabfs/) 是我最终使用的,因为它通过文件系统驱动程序打开了一个非常 info-rich 的浏览器状态接口。