eoka 0.14.0

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

// WebGL vendor/renderer (gated by `StealthConfig::fingerprint_spoofing`).
for (const name of ['WebGLRenderingContext', 'WebGL2RenderingContext']) {
    if (typeof globalThis[name] === 'undefined') continue;
    _eoka_patchMethod(globalThis[name].prototype, 'getParameter', (original) => function(...args) {
        // The native call keeps receiver checks and GL error state.
        const value = original.apply(this, args);
        if (args[0] === 37445) return '__EOKA_WEBGL_VENDOR__';
        if (args[0] === 37446) return '__EOKA_WEBGL_RENDERER__';
        return value;
    });
}