Skip to content

Instantly share code, notes, and snippets.

@brobles82
Created February 25, 2020 16:49
Show Gist options
  • Save brobles82/171c2c0c7011801b372b690fbdc26292 to your computer and use it in GitHub Desktop.
Save brobles82/171c2c0c7011801b372b690fbdc26292 to your computer and use it in GitHub Desktop.
page.on('request', interceptedRequest => {
if (interceptedRequest.resourceType() === 'image') {
interceptedRequest.abort()
} else {
interceptedRequest.continue()
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment