eoka 0.12.1

Stealth browser automation for Rust. Puppeteer/Playwright alternative with anti-bot bypass.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

// Brands and high-entropy hints come from the native user-agent metadata
// override, so `navigator.userAgentData` is left untouched here.

// Legacy headless reported an all-zero NetworkInformation; stock Chrome
// (headless/new included) reports measured values, which stay native.
if (navigator.connection && navigator.connection.rtt === 0 && navigator.connection.downlink === 0 &&
        typeof NetworkInformation !== 'undefined') {
    const connectionProps = { downlink: 10, effectiveType: '4g', rtt: 50, saveData: false };
    for (const [key, value] of Object.entries(connectionProps)) {
        try {
            _eoka_patchGetter(NetworkInformation.prototype, key, () => () => value);
        } catch(e) {}
    }
}