Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: remove hardcoded UA override, use Chrome's native user agent

Marioe6e1f330c09e
diff --git a/config.go b/config.go
index 4175b853..b372f0d7 100644
--- a/config.go
+++ b/config.go
@@ -56,7 +56,7 @@ var (
headless = os.Getenv("BRIDGE_HEADLESS") == "true"
noRestore = os.Getenv("BRIDGE_NO_RESTORE") == "true"
profileDir = envOr("BRIDGE_PROFILE", filepath.Join(homeDir(), ".pinchtab", "chrome-profile"))
- chromeVersion = envOr("BRIDGE_CHROME_VERSION", "133.0.6943.98")
+ chromeVersion = envOr("BRIDGE_CHROME_VERSION", "144.0.7559.133")
timezone = os.Getenv("BRIDGE_TIMEZONE") // e.g. "America/New_York"
blockImages = os.Getenv("BRIDGE_BLOCK_IMAGES") == "true"
blockMedia = os.Getenv("BRIDGE_BLOCK_MEDIA") == "true" // superset: images + fonts + CSS + video
diff --git a/main.go b/main.go
index 7199f36f..a0fa8e54 100644
--- a/main.go
+++ b/main.go
@@ -110,8 +110,7 @@ func main() {
// Random seed for consistent behavior across runs
chromedp.Flag("js-flags", "--random-seed=1157259157"),
- // Identity
- chromedp.UserAgent(fmt.Sprintf("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36", chromeVersion)),
+ // Window size (UA left as Chrome default to avoid detection mismatches)
chromedp.WindowSize(1366, 768),
}