mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-06 04:57:48 +02:00
refactor: separate form for wayfern
This commit is contained in:
+111
-1
@@ -290,7 +290,7 @@ export interface CamoufoxLaunchResult {
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export type WayfernOS = "windows" | "macos" | "linux";
|
||||
export type WayfernOS = "windows" | "macos" | "linux" | "android" | "ios";
|
||||
|
||||
export interface WayfernConfig {
|
||||
proxy?: string;
|
||||
@@ -308,6 +308,116 @@ export interface WayfernConfig {
|
||||
os?: WayfernOS; // Operating system for fingerprint generation
|
||||
}
|
||||
|
||||
// Wayfern fingerprint config - matches the C++ FingerprintData structure
|
||||
export interface WayfernFingerprintConfig {
|
||||
// User agent and platform
|
||||
userAgent?: string;
|
||||
platform?: string;
|
||||
platformVersion?: string;
|
||||
brand?: string;
|
||||
brandVersion?: string;
|
||||
|
||||
// Hardware
|
||||
hardwareConcurrency?: number;
|
||||
maxTouchPoints?: number;
|
||||
deviceMemory?: number;
|
||||
|
||||
// Screen
|
||||
screenWidth?: number;
|
||||
screenHeight?: number;
|
||||
screenAvailWidth?: number;
|
||||
screenAvailHeight?: number;
|
||||
screenColorDepth?: number;
|
||||
screenPixelDepth?: number;
|
||||
devicePixelRatio?: number;
|
||||
|
||||
// Window
|
||||
windowOuterWidth?: number;
|
||||
windowOuterHeight?: number;
|
||||
windowInnerWidth?: number;
|
||||
windowInnerHeight?: number;
|
||||
screenX?: number;
|
||||
screenY?: number;
|
||||
|
||||
// Language
|
||||
language?: string;
|
||||
languages?: string[];
|
||||
|
||||
// Browser features
|
||||
doNotTrack?: string;
|
||||
cookieEnabled?: boolean;
|
||||
webdriver?: boolean;
|
||||
pdfViewerEnabled?: boolean;
|
||||
|
||||
// WebGL
|
||||
webglVendor?: string;
|
||||
webglRenderer?: string;
|
||||
webglVersion?: string;
|
||||
webglShadingLanguageVersion?: string;
|
||||
webglParameters?: string; // JSON string
|
||||
webgl2Parameters?: string; // JSON string
|
||||
webglShaderPrecisionFormats?: string; // JSON string
|
||||
webgl2ShaderPrecisionFormats?: string; // JSON string
|
||||
|
||||
// Timezone and geolocation
|
||||
timezone?: string;
|
||||
timezoneOffset?: number;
|
||||
latitude?: number;
|
||||
longitude?: number;
|
||||
accuracy?: number;
|
||||
|
||||
// Media queries / preferences
|
||||
prefersReducedMotion?: boolean;
|
||||
prefersDarkMode?: boolean;
|
||||
prefersContrast?: string;
|
||||
prefersReducedData?: boolean;
|
||||
|
||||
// Color/HDR
|
||||
colorGamutSrgb?: boolean;
|
||||
colorGamutP3?: boolean;
|
||||
colorGamutRec2020?: boolean;
|
||||
hdrSupport?: boolean;
|
||||
|
||||
// Audio
|
||||
audioSampleRate?: number;
|
||||
audioMaxChannelCount?: number;
|
||||
|
||||
// Storage
|
||||
localStorage?: boolean;
|
||||
sessionStorage?: boolean;
|
||||
indexedDb?: boolean;
|
||||
|
||||
// Canvas
|
||||
canvasNoiseSeed?: string;
|
||||
|
||||
// Fonts, plugins, mime types (JSON strings)
|
||||
fonts?: string; // JSON array string
|
||||
plugins?: string; // JSON array string
|
||||
mimeTypes?: string; // JSON array string
|
||||
|
||||
// Battery (optional)
|
||||
batteryCharging?: boolean;
|
||||
batteryChargingTime?: number;
|
||||
batteryDischargingTime?: number;
|
||||
batteryLevel?: number;
|
||||
|
||||
// Voices
|
||||
voices?: string; // JSON array string
|
||||
|
||||
// Vendor info
|
||||
vendor?: string;
|
||||
vendorSub?: string;
|
||||
productSub?: string;
|
||||
|
||||
// Network (optional)
|
||||
connectionEffectiveType?: string;
|
||||
connectionDownlink?: number;
|
||||
connectionRtt?: number;
|
||||
|
||||
// Performance
|
||||
performanceMemory?: number;
|
||||
}
|
||||
|
||||
export interface WayfernLaunchResult {
|
||||
id: string;
|
||||
processId?: number;
|
||||
|
||||
Reference in New Issue
Block a user