feat: add launchPersistentContext() to avoid incognito detection

This commit is contained in:
lilos
2026-03-04 12:00:49 +03:00
parent ed0ecf0e48
commit 51c3f464a5
3 changed files with 65 additions and 3 deletions
+15
View File
@@ -34,6 +34,21 @@ export interface LaunchContextOptions extends LaunchOptions {
colorScheme?: "light" | "dark" | "no-preference";
}
export interface LaunchPersistentContextOptions extends LaunchOptions {
/** Path to user data directory for persistent profile. */
userDataDir: string;
/** Custom user agent string. */
userAgent?: string;
/** Viewport size. */
viewport?: { width: number; height: number };
/** Browser locale for context, e.g. "en-US". */
locale?: string;
/** Timezone for context, e.g. "America/New_York". */
timezoneId?: string;
/** Color scheme preference. */
colorScheme?: "light" | "dark" | "no-preference";
}
export interface BinaryInfo {
version: string;
platform: string;