How atubodad/playwright_stealth works
playwright_stealth is a small Playwright library that installs browser-fingerprinting patches before page navigation. The main workflow is a user applying the sync or async API, configuration selecting initialization scripts, and Playwright registering them on the page. The scripts cover navigator properties, Chrome APIs, iframe behavior, media codecs and WebGL. Several individual script files are indexed but not excerpted; their specific behavior and internal links are therefore not expanded beyond documented capabilities and shown registrations.
Main entry points: stealth.py Stealth API and config · utils.js JavaScript utilities · navigator.plugins.js Plugins and MIME · chrome.app.js Chrome app
Components 17
Python API
- Stealth API and config
playwright_stealth/stealth.py
Navigator patches
- Webdriver flag
playwright_stealth/js/navigator.webdriver.js - User agent
playwright_stealth/js/navigator.userAgent.js - Plugins and MIME
playwright_stealth/js/navigator.plugins.js - Other navigator properties
playwright_stealth/js
Chrome patches
- Chrome app
playwright_stealth/js/chrome.app.js - Chrome runtime
playwright_stealth/js/chrome.runtime.js - Chrome load timing
playwright_stealth/js/chrome.load.times.js - Other Chrome properties
playwright_stealth/js
Web APIs and helpers
- Iframe window
playwright_stealth/js/iframe.contentWindow.js - Media codecs
playwright_stealth/js/media.codecs.js - WebGL vendor
playwright_stealth/js/webgl.vendor.js - Window dimensions
playwright_stealth/js/window.outerdimensions.js - Magic arrays helper
playwright_stealth/js/generate.magic.arrays.js - JavaScript utilities
playwright_stealth/js/utils.js
Other components
- Library user
- Playwright page
Connections 22
- Library user → Stealth API and config: applies
README.md - Stealth API and config → Playwright page: registers scripts
playwright_stealth/stealth.py - Stealth API and config → Webdriver flag: selects script
playwright_stealth/stealth.py - Stealth API and config → User agent: selects script
playwright_stealth/stealth.py - Stealth API and config → Plugins and MIME: selects script
playwright_stealth/stealth.py - Stealth API and config → Other navigator properties: selects scripts
playwright_stealth/stealth.py - Stealth API and config → Chrome app: selects script
playwright_stealth/stealth.py - Stealth API and config → Chrome runtime: selects script
playwright_stealth/stealth.py - Stealth API and config → Chrome load timing: selects script
playwright_stealth/stealth.py - Stealth API and config → Other Chrome properties: selects scripts
playwright_stealth/stealth.py - Stealth API and config → Iframe window: selects script
playwright_stealth/stealth.py - Stealth API and config → Media codecs: selects script
playwright_stealth/stealth.py - Stealth API and config → WebGL vendor: selects script
playwright_stealth/stealth.py - Stealth API and config → Window dimensions: selects script
playwright_stealth/stealth.py - Stealth API and config → Magic arrays helper: loads helper
playwright_stealth/stealth.py - Stealth API and config → JavaScript utilities: loads helper
playwright_stealth/stealth.py - Plugins and MIME → Magic arrays helper: generates arrays
playwright_stealth/js/navigator.plugins.js - Plugins and MIME → JavaScript utilities: uses utilities
playwright_stealth/js/navigator.plugins.js - Chrome runtime → JavaScript utilities: mocks functions
playwright_stealth/js/chrome.runtime.js - Iframe window → JavaScript utilities: replaces proxy
playwright_stealth/js/iframe.contentWindow.js - Media codecs → JavaScript utilities: replaces proxy
playwright_stealth/js/media.codecs.js - Chrome app → JavaScript utilities: patches strings
playwright_stealth/js/chrome.app.js