Comments (1)
The simplest temporary way to fix this bug is using puppeteer-extra-plugin-stealth and playwright-extra.
const { chromium } = require('playwright-extra');
const { FingerprintGenerator } = require('fingerprint-generator');
const { FingerprintInjector } = require('fingerprint-injector');
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin());
const fingerprintGenerator = new FingerprintGenerator();
const fingerprintInjector = new FingerprintInjector();
((async () => {
const fingerprint = fingerprintGenerator.getFingerprint({
devices: ['desktop'],
browsers: [{ name: "firefox", minVersion: 98 }, { name: 'chrome', minVersion: 98 }],
locales: ["en-US"],
});
const ctx = await chromium.launchPersistentContext('./profile/', {
headless: false,
ignoreHTTPSErrors: true,
viewport: null,
userAgent: fingerprint.fingerprint.navigator.userAgent,
locale: fingerprint.fingerprint.navigator.language,
});
await fingerprintInjector.attachFingerprintToPlaywright(ctx, fingerprint);
const page = ctx.pages()[0];
page.setDefaultNavigationTimeout(0);
const navigationPromise = page.waitForNavigation({ waitUntil: "domcontentloaded", });
await page.goto('https://accounts.google.com/signin/v2/identifier?flowName=GlifWebSignIn&flowEntry=ServiceLogin');
await navigationPromise;
await page.waitForSelector('input[type="email"]');
await page.type('input[type="email"]', "your.email");
await page.click("#identifierNext", { delay: 31 });
await page.waitForSelector('input[type="password"]', { visible: true });
await page.type('input[type="password"]', "your.password");
await page.waitForSelector("#passwordNext", { visible: true });
await page.click("#passwordNext");
await navigationPromise;
})()
from fingerprint-suite.
Related Issues (20)
- Headers customization HOT 2
- Opera User Agent Missing. HOT 1
- Prompt browser is not safe, how to solve this problem? HOT 1
- Invalid filename after Electron build HOT 1
- Random useragent HOT 1
- Invalid Filename Error on Instantiating `FingerprintGenerator` in AWS Lambda HOT 8
- Bug in platform generation `"platform": "Win32"` HOT 3
- Invalid Filename Error on Instantiating FingerprintGenerator in AWS Lambda
- Antibot system HOT 1
- Relaxing the constraints & Strict mode HOT 1
- Fingerprint of my browser to fingerprint-suite HOT 1
- Nowsecure.nl does not pass HOT 4
- Bug fonts in fingerprint generator HOT 1
- navigator.userAgentData.getHighEntropyValues() doesn't return the values of base hints HOT 1
- Browser hangs when navigating on shopee.com.my when overriding codecs HOT 4
- Please add documentation
- navigator.mediaDevices maybe nullable HOT 1
- What are all the "fingerprintOptions" options of newInjectedPage() from "fingerprint-injector" HOT 1
- `sec-ch-ua` header is weirdly inconsistent HOT 4
- No Docs/API reference? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fingerprint-suite.