Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 2.11 KB

File metadata and controls

59 lines (47 loc) · 2.11 KB

tools.camoufox

Important

You need to add camoufox-js package to your npm dependencies.

Replace Firefox by Camoufox.

Options

This plugin supports the following option (from Camoufox):

Examples

Use the plugin with default options.

import { firefox } from "playwright-ghost";
import toolsCamoufoxPlugin from "playwright-ghost/plugins/tools/camoufox";

const browser = await firefox.launch({
  plugins: [toolsCamoufoxPlugin()],
});
// ...

Use the plugin and set options for fingerprint generation randomly from a list of OS.

import { firefox } from "playwright-ghost";
import toolsCamoufoxPlugin from "playwright-ghost/plugins/tools/camoufox";

const browser = await firefox.launch({
  plugins: [toolsCamoufoxPlugin({ os: ["macos", "linux"] })],
});
// ...