firefox

package
v1.0.202 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Desktop = profiles.Variant{
	HelloID:      HelloFirefox_148,
	Boundary:     Boundary,
	ConfigureH2:  configureH2Desktop,
	ConfigureH3:  configureH3Desktop,
	BuildHeaders: buildHeadersDesktop,
	Headers:      DesktopApplier,
}

Desktop is the Firefox 148 desktop variant — current production fingerprint.

View Source
var DesktopApplier = profiles.NewApplier(insertDesktopHeaders, insertDesktopHeaders, headerCache, false)

DesktopApplier applies the desktop Firefox request-header pipeline. Wired into firefox.Desktop.

View Source
var HelloFirefox_148 = utls.HelloFirefox_148

HelloFirefox_148 is the desktop ClientHelloID for Firefox 148.

View Source
var HelloFirefox_148_Mobile = utls.HelloFirefox_148

HelloFirefox_148_Mobile is a placeholder mobile variant; functionally identical to the desktop ClientHelloID until real Firefox Android bytes are observed and substituted here.

View Source
var Mobile = profiles.Variant{
	HelloID:      HelloFirefox_148_Mobile,
	Boundary:     Boundary,
	ConfigureH2:  configureH2Mobile,
	ConfigureH3:  configureH3Mobile,
	BuildHeaders: buildHeadersMobile,
	Headers:      MobileApplier,
}

Mobile is a placeholder Firefox 148 mobile variant. On the day real Firefox Android 148 bytes are observed, replace HelloFirefox_148_Mobile, configureH2Mobile, configureH3Mobile and buildHeadersMobile bodies — the variant fields below stay as-is.

View Source
var MobileApplier = profiles.NewApplier(insertMobileHeaders, insertMobileHeaders, headerCache, true)

MobileApplier applies the mobile Firefox request-header pipeline. Wired into firefox.Mobile.

View Source
var UserAgent = g.Map[profiles.OSKey, g.String]{
	profiles.Windows: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0",
	profiles.MacOS:   "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0",
	profiles.Linux:   "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0",
	profiles.Android: "Mozilla/5.0 (Android 16; Mobile; rv:148.0) Gecko/148.0 Firefox/148.0",
	profiles.IOS:     "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/148.0 Mobile/15E148 Safari/605.1.15",
}

UserAgent maps every supported impersonated OS to its Firefox 148 User-Agent string. Shared between Desktop and Mobile variants — UA strings are an OS property, not a form-factor property. iOS Firefox uses the FxiOS variant (under the hood it is WebKit).

Functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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