Skip to content

Add init script for Playwright browser context #549

@vdusek

Description

@vdusek
  • For now, let's use a data file containing fingerprints (or at minimum user agents) from the Apify fingerprint dataset.
  • Use the init script from the fingerprint suite.
  • A fingerprint, selected based on parameters such as OS or browser type, should be passed to the init script.
  • Load the JS init script from a file and convert it into a string for injection.
  • Inject the script into the Playwright browser context using BrowserContext.add_init_scripts().
  • Possible inspiration:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request.product roadmapIssues synchronized to product roadmap.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions