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

Two new HeadlessBrowserLoaderHelper features #181

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

otsch
Copy link
Member

@otsch otsch commented Jan 3, 2025

  • New method HeadlessBrowserLoaderHelper::setPageInitScript() ($crawler->getLoader()->browser()->setPageInitScript()) to provide javascript code that is executed on every new browser page before navigating anywhere.
  • New method HeadlessBrowserLoaderHelper::useNativeUserAgent() ($crawler->getLoader()->browser()->useNativeUserAgent()) to allow using the native User-Agent that your Chrome browser sends by default.

* New method `HeadlessBrowserLoaderHelper::setPageInitScript()`
  (`$crawler->getLoader()->browser()->setPageInitScript()`) to provide
  javascript code that is executed on every new browser page before
  navigating anywhere.
* New method `HeadlessBrowserLoaderHelper::useNativeUserAgent()`
  (`$crawler->getLoader()->browser()->useNativeUserAgent()`) to allow
  using the native `User-Agent` that your Chrome browser sends by
  default.
@otsch otsch merged commit 35365b5 into main Jan 3, 2025
6 checks passed
@otsch otsch deleted the feature/browser-loader-helper-improvements branch January 3, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant