Added
- 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 nativeUser-Agent
that your Chrome browser sends by default.