You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fingerprint-injector

Package Overview
Dependencies
Maintainers
10
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fingerprint-injector - npm Package Compare versions

Comparing version

to
2.0.2-dev.0

11

fingerprint-injector.js

@@ -44,2 +44,5 @@ "use strict";

});
await browserContext.on('page', async (page) => {
await page.emulateMedia({ colorScheme: 'dark' });
});
await browserContext.addInitScript({

@@ -69,2 +72,5 @@ content,

});
await page.emulateMediaFeatures([
{ name: 'prefers-color-scheme', value: 'dark' },
]);
await page.evaluateOnNewDocument(this.getInjectableFingerprintFunction(enhancedFingerprint));

@@ -119,4 +125,2 @@ }

overrideIntlAPI(navigatorProps.language);
// override navigator
overrideInstancePrototype(window.navigator, navigatorProps);
if (userAgentData) {

@@ -126,4 +130,5 @@ overrideUserAgentData(userAgentData);

if (window.navigator.webdriver) {
navigatorProps.webdriver = webdriver;
navigatorProps.webdriver = false;
}
overrideInstancePrototype(window.navigator, navigatorProps);
overrideInstancePrototype(window.screen, newScreen);

@@ -130,0 +135,0 @@ overrideWindowDimensionsProps(windowScreenProps);

{
"name": "fingerprint-injector",
"version": "2.0.1",
"version": "2.0.2-dev.0",
"description": "Browser fingerprint injection library for Playwright and Puppeteer.",

@@ -20,3 +20,3 @@ "engines": {

"@apify/log": "^1.0.5",
"fingerprint-generator": "^2.0.0"
"fingerprint-generator": "^2.0.2-dev.0"
},

@@ -52,3 +52,3 @@ "peerDependencies": {

},
"gitHead": "361ed1809be4c34b7c9a0e584f7a50926d697bde"
"gitHead": "fb4e848971308d895a5c6451d75dd401552f9e42"
}
<h1 align="center">
<a href="https://apify.github.io/fingerprint-suite/">
<picture>
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/apify/fingerprint-suite/master/website/static/img/logo_big_dark.svg">
<img alt="Fingerprinting suite" src="https://raw.githubusercontent.com/apify/fingerprint-suite/master/website/static/img/logo_big_light.svg" width="500">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/apify/fingerprint-suite/master/website/static/img/logo_big_light.svg">
<img alt="Fingerprinting suite" src="https://raw.githubusercontent.com/apify/fingerprint-suite/master/website/static/img/logo_big_dark.svg" width="500">
</picture>

@@ -7,0 +7,0 @@ </a>

@@ -34,2 +34,3 @@ /**

declare function overrideUserAgentData(userAgentData: any): void;
declare function overrideStatic(): void;
declare namespace cache {

@@ -36,0 +37,0 @@ namespace Reflect {

@@ -294,3 +294,4 @@ "use strict";

function overrideDocumentDimensionsProps(props) {
overrideScreenByReassigning(window.document.body, props);
// FIX THIS = non-zero values here block the injecting process?
// overrideScreenByReassigning(window.document.body, props);
}

@@ -334,2 +335,7 @@ // eslint-disable-next-line no-unused-vars

;
function overrideStatic() {
if (navigator.webdriver) {
overrideInstancePrototype(window.navigator, { webdriver: false });
}
}
//# sourceMappingURL=utils.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet