New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/zanardo/fxtabs-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/zanardo/fxtabs-go

  • v0.0.0-20211127005457-db777de03ed3
  • Source
  • Go
  • Socket score

Version published
Created
Source

fxtabs

Go package 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

Import package in your project:

go get github.com/zanardo/fxtabs-go

Collect open tabs:

package main

import "github.com/zanardo/fxtabs-go"

func main() {
    tabs, err := fxtabs.OpenTabs("/path/to/sessionstore-backups/recovery.jsonlz4")
    if err != nil {
        panic(err)
    }
    for _, tab := range tabs {
        fmt.Printf("title: %s\n", tab.Title)
        fmt.Printf("url: %s\n", tab.URL)
    }
}

FAQs

Package last updated on 27 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc