I want to use Brave Browser Puppeteer because it has very good adblocking, but when I try it with puppeteer the adblocking feature doesn’t work properly. I have read several suggestions many say should use the default profile but the adblocking is still not working.
I’ve tried running puppeteer with the default brave browser profile like this, but the adblocker still doesn’t work. this my code :
const browser = await puppeteer.launch({
headless: false,
ignoreHTTPSErrors: true,
executablePath: "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe",
userDataDir: "C:/Users/MyUser/AppData/Local/BraveSoftware/Brave-Browser/User Data/Default",
slowMo: 0,
devtools: false,
args: [
'--no-sandbox',
'--no-zygote',
'--no-first-run',
'--disable-setuid-sandbox',
'--disable-infobars',
'--disable-dev-shm-usage',
'--disable-accelerated-2d-canvas',
'--disable-blink-features=AutomationControlled',
'--ignore-certifcate-errors',
'--ignore-certifcate-errors-spki-list',
'--window-size=1920x1080',
],
});