firefox

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package firefox loads cookies from Firefox profile data.

Index

Constants

This section is empty.

Variables

View Source
var (
	// FirefoxBrowser describes Firefox.
	FirefoxBrowser = browserFromSpec(browsercfg.MustMozilla("firefox"))
	// LibreWolfBrowser describes LibreWolf.
	LibreWolfBrowser = browserFromSpec(browsercfg.MustMozilla("librewolf"))
	// ZenBrowser describes Zen.
	ZenBrowser = browserFromSpec(browsercfg.MustMozilla("zen"))
)

Functions

This section is empty.

Types

type Browser

type Browser struct {
	Name            string
	ProfilePatterns []string
}

Browser describes a Firefox-family browser.

type Loader

type Loader struct{}

Loader reads Firefox cookie stores.

func NewLoader

func NewLoader() Loader

NewLoader builds a Firefox loader.

func (Loader) Load

func (Loader) Load(browser Browser, cookieFiles, domains []string) ([]*http.Cookie, error)

Load reads cookies from the configured Firefox profile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL