Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

idcac-playwright

Package Overview
Dependencies
Maintainers
0
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
  • npm
  • Socket score

Version published
Weekly downloads
18K
increased by11.92%
Maintainers
0
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc