I Don't Care About Cookies extension compiled for use with Playwright/Puppeteer
GPL-3.0 License
This package contains the I don't care about cookies browser extension compiled for use with Playwright or Puppeteer.
import { chromium } from 'playwright'; // works with Firefox too!
import { getInjectableScript } from 'idcac-playwright';
(async () => {
const b = await chromium.launch({
headless: false,
});
const context = await b.newContext();
const p = await context.newPage();
await p.goto('https://google.com');
// Inject the extension as a client-side script
await p.evaluate(getInjectableScript());
// Enjoy your webpage without annoying cookie modals!
})();