How to block specific js in puppeteer

Hello, I need to block certain scripts on a website in Puppeteer. Is there any way to do this? If possible without disabling whole js

Config settings > Puppeteer > Blocked URLs > Write the name of the js file in there so it will not be downloaded by the browser. Maybe it works ^^

Otherwise you can use an ExecuteJS to replace the incriminated function with a dummy one so it will not execute even if called

1 Like