fxtabs

Crates.iofxtabs
lib.rsfxtabs
version0.2.0
sourcesrc
created_at2021-05-16 22:27:31.839294
updated_at2022-04-27 01:41:48.278894
descriptionCollect open tabs on all Mozilla Firefox windows
homepagehttps://github.com/zanardo/fxtabs-rs
repositoryhttps://github.com/zanardo/fxtabs-rs
max_upload_size
id398375
size5,211
Antonio Zanardo (zanardo)

documentation

README

fxtabs

Rust crate to collect open tabs on all Mozilla Firefox windows (from the same profile).

Tabs are collected from recovery.jsonlz4 file, where Firefox uses as a persistent backup of open tabs, back and forward button pages, cookies, forms, and other session data.

This file is written almost in real time (there will be only some seconds delay) whenever there is a browsing/tabs action.

Usage

Add the dependency on Cargo.toml:

fxtabs = "<version>"

Collect open tabs:

use fxtabs::open_tabs;

const FILE: &str = "/path/to/sessionstore-backups/recovery.jsonlz4";

fn main() {
    let tabs = open_tabs(FILE).unwrap();
    for t in tabs {
        println!("title: {}\nurl: {}\n", t.title, t.url);
    }
}

Commit count: 7

cargo fmt