zendriver-stealth 0.1.1

Anti-detection patches and profiles for zendriver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Defeats: bot.sannysoft.com `WebGL Vendor` + `WebGL Renderer` rows.
// Headless reports vendor="Brian Paul" / renderer="Mesa OffScreen" or SwiftShader.
// Spoof to common Intel desktop values matching the fingerprint platform.
const VENDOR = 'Google Inc. (Intel)';
const RENDERER = 'ANGLE (Intel, Intel(R) UHD Graphics 630 Direct3D11 vs_5_0 ps_5_0, D3D11)';
[WebGLRenderingContext.prototype, WebGL2RenderingContext.prototype].forEach(proto => {
    const orig = proto.getParameter;
    proto.getParameter = function(param) {
        if (param === 37445) return VENDOR;    // UNMASKED_VENDOR_WEBGL
        if (param === 37446) return RENDERER;  // UNMASKED_RENDERER_WEBGL
        return orig.call(this, param);
    };
});