@intuned/runtime-dev 1.1.5-fingerprint.6 → 1.1.5-fingerprint.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,124 @@
1
+ {
2
+ "fingerprint": {
3
+ "screen": {
4
+ "availHeight": 1080,
5
+ "availWidth": 1920,
6
+ "pixelDepth": 24,
7
+ "height": 1080,
8
+ "width": 1920,
9
+ "availTop": 0,
10
+ "availLeft": 0,
11
+ "colorDepth": 24,
12
+ "innerHeight": 969,
13
+ "outerHeight": 1080,
14
+ "outerWidth": 1920,
15
+ "innerWidth": 1920,
16
+ "screenX": 0,
17
+ "pageXOffset": 0,
18
+ "pageYOffset": 0,
19
+ "devicePixelRatio": 1,
20
+ "clientWidth": 1920,
21
+ "clientHeight": 969,
22
+ "hasHDR": false
23
+ },
24
+ "navigator": {
25
+ "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
26
+ "userAgentData": null,
27
+ "language": "en-US",
28
+ "languages": ["en-US", "en"],
29
+ "platform": "Linux x86_64",
30
+ "deviceMemory": null,
31
+ "hardwareConcurrency": 6,
32
+ "maxTouchPoints": 0,
33
+ "product": "Gecko",
34
+ "productSub": "20100101",
35
+ "vendor": "",
36
+ "vendorSub": "",
37
+ "doNotTrack": "unspecified",
38
+ "appCodeName": "Mozilla",
39
+ "appName": "Netscape",
40
+ "appVersion": "5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101",
41
+ "oscpu": "Linux x86_64",
42
+ "extraProperties": {
43
+ "vendorFlavors": [],
44
+ "globalPrivacyControl": false,
45
+ "pdfViewerEnabled": true,
46
+ "installedApps": []
47
+ },
48
+ "webdriver": false
49
+ },
50
+ "audioCodecs": {
51
+ "ogg": "probably",
52
+ "mp3": "maybe",
53
+ "wav": "probably",
54
+ "m4a": "maybe",
55
+ "aac": "maybe"
56
+ },
57
+ "videoCodecs": {
58
+ "ogg": "probably",
59
+ "h264": "probably",
60
+ "webm": "probably"
61
+ },
62
+ "pluginsData": {
63
+ "plugins": [
64
+ {
65
+ "name": "Chromium PDF Plugin",
66
+ "description": "Portable Document Format",
67
+ "filename": "internal-pdf-viewer",
68
+ "mimeTypes": [
69
+ {
70
+ "type": "application/pdf",
71
+ "suffixes": "pdf",
72
+ "description": "Portable Document Format",
73
+ "enabledPlugin": "Chromium PDF Plugin"
74
+ }
75
+ ]
76
+ }
77
+ ],
78
+ "mimeTypes": ["Portable Document Format~~application/pdf~~pdf"]
79
+ },
80
+ "battery": null,
81
+ "videoCard": {
82
+ "vendor": "ANGLE (NVIDIA Corporation)",
83
+ "renderer": "ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0, D3D11)"
84
+ },
85
+ "multimediaDevices": {
86
+ "speakers": [],
87
+ "micros": [],
88
+ "webcams": []
89
+ },
90
+ "fonts": [
91
+ "Arial",
92
+ "Arial Black",
93
+ "Comic Sans MS",
94
+ "Courier New",
95
+ "Georgia",
96
+ "Impact",
97
+ "Times New Roman",
98
+ "Trebuchet MS",
99
+ "Verdana",
100
+ "Liberation Sans",
101
+ "Liberation Serif",
102
+ "Liberation Mono",
103
+ "DejaVu Sans",
104
+ "DejaVu Serif",
105
+ "DejaVu Sans Mono"
106
+ ],
107
+ "mockWebRTC": false,
108
+ "slim": false
109
+ },
110
+ "headers": {
111
+ "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
112
+ "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
113
+ "accept-language": "en-US,en;q=0.9",
114
+ "accept-encoding": "gzip, deflate, br, zstd",
115
+ "upgrade-insecure-requests": "1",
116
+ "sec-ch-ua": "\"Google Chrome\";v=\"136\", \"Chromium\";v=\"136\", \"Not_A Brand\";v=\"24\"",
117
+ "sec-ch-ua-mobile": "?0",
118
+ "sec-ch-ua-platform": "\"Linux\"",
119
+ "sec-fetch-dest": "document",
120
+ "sec-fetch-mode": "navigate",
121
+ "sec-fetch-site": "none",
122
+ "sec-fetch-user": "?1"
123
+ }
124
+ }
@@ -70,10 +70,6 @@ async function getProductionPlaywrightConstructs({
70
70
  }
71
71
  const userDataDir = await createUserDirWithPreferences();
72
72
  const generator = new _fingerprintGenerator.FingerprintGenerator();
73
- const fingerprint = generator.getFingerprint({
74
- devices: ["desktop"],
75
- operatingSystems: ["linux"]
76
- });
77
73
  const extensionPath = _path.default.join(__dirname, "./assets/nopecha-extension");
78
74
  const context = await playwright.chromium.launchPersistentContext(userDataDir, {
79
75
  headless,
@@ -83,8 +79,9 @@ async function getProductionPlaywrightConstructs({
83
79
  args: ["--load-extension=" + extensionPath]
84
80
  });
85
81
  const injector = new _fingerprintInjector.FingerprintInjector();
86
- console.log(fingerprint);
87
- await injector.attachFingerprintToPlaywright(context, fingerprint);
82
+ const loadedFingerprintFile = _path.default.join(__dirname, "./assets/fingerprint.json");
83
+ const loadedFingerprint = await fs.readJson(loadedFingerprintFile);
84
+ await injector.attachFingerprintToPlaywright(context, loadedFingerprint);
88
85
  context.once("close", async () => {
89
86
  try {
90
87
  await (0, _fsExtra.rm)(userDataDir, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.1.5-fingerprint.6",
3
+ "version": "1.1.5-fingerprint.8",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",