1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Anti-detection profiles and patches for `zendriver`.
//!
//! See the [Stealth chapter](https://turtiesocks.github.io/zendriver-rs/stealth.html)
//! of the [zendriver-rs user guide](https://turtiesocks.github.io/zendriver-rs/)
//! for profile trade-offs, the sannysoft test matrix, and platform-spoofing
//! recipes.
//!
//! Three stealth modes, exposed via [`StealthProfile`]:
//!
//! - [`StealthProfile::off`] — no stealth (stock Chrome launch).
//! - [`StealthProfile::native`] — launch flags + UA scrub + CDP `Emulation`
//! overrides. Safe against `Function.prototype.toString` probes; the
//! default.
//! - [`StealthProfile::spoofed`] — `native` plus a Navigator-prototype JS
//! bootstrap script that passes the [sannysoft][sannysoft] battery.
//!
//! Most users go through `zendriver`'s `BrowserBuilder::stealth(...)`:
//!
//! ```
//! use zendriver_stealth::{Platform, StealthProfile};
//!
//! let profile = StealthProfile::spoofed()
//! .platform(Platform::MacIntel)
//! .locale("en-US")
//! .timezone("America/Los_Angeles");
//!
//! assert!(profile.bypass_csp_enabled());
//! assert!(!profile.build_flags().is_empty());
//! ```
//!
//! The [`StealthObserver`] type plugs into `zendriver-transport`'s observer
//! chain and applies the resolved [`Fingerprint`] / bootstrap to every newly
//! attached page target before Chrome releases the debugger.
//!
//! [sannysoft]: https://bot.sannysoft.com/
// Re-exports added as types land in Tasks 1–13:
pub use StealthError;
pub use ;
pub use InputProfile;
pub use StealthObserver;
pub use ;