Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add init script for Playwright browser context #549

Open
vdusek opened this issue Sep 27, 2024 · 0 comments
Open

Add init script for Playwright browser context #549

vdusek opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request. t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@vdusek
Copy link
Collaborator

vdusek commented Sep 27, 2024

  • 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:
@vdusek vdusek added enhancement New feature or request. t-tooling Issues with this label are in the ownership of the tooling team. labels Sep 27, 2024
@vdusek vdusek self-assigned this Sep 27, 2024
@vdusek vdusek added this to the 100th sprint - Tooling team milestone Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

1 participant