Socket
Book a DemoInstallSign in
Socket

idcac-playwright

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idcac-playwright

I Don't Care About Cookies for Playwright/Puppeteer

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
37K
-5.3%
Maintainers
1
Weekly downloads
 
Created
Source

I Don't Care About Cookies for Playwright/Puppeteer

This package contains the I don't care about cookies browser extension compiled for use with Playwright or Puppeteer.

Usage

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!
})();

What works:

  • Custom CSS injection
  • Custom JS injection

WIP

  • Network interception
    • trying to figure out the best way to do this with Playwright

What doesn't work:

  • Whitelisting (just don't inject the script on the page you want to whitelist)

Keywords

playwright

FAQs

Package last updated on 09 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.