Skip to content

Implement this detection for puppeteer-extra-stealth #16

@JorianWoltjer

Description

@JorianWoltjer

I noticed that this project doesn't have a checked box next to puppeteer-extra-stealth, and some time ago I found a way to detect it via JavaScript:

function detectHeadless() {
    const iframe = document.createElement('iframe');
    iframe.srcdoc = '';
    return iframe.__lookupGetter__('contentWindow').toString().includes('proxy');
}

I'm not really able to implement this into brotector myself, but someone with experience should be able to do so pretty quickly I imagine. That would make cdp-patches the only undetectable browser from what I can see.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions