preNavigationHooks
to block images, which works for the initial page load but does not block images loaded after a click on the page (i.e. XHR requests). How can these be blocked?preNavigationHooks: [ async ({ page, blockRequests }) => { await page.setViewportSize({ width: 1920, height: 1080 }) await blockRequests({ urlPatterns: [".jpg", ".png", ".gif", ".svg"], }) }, ],