@intuned/runtime-dev 1.1.5-fingerprint.3 → 1.1.5-fingerprint.5

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.
@@ -29,7 +29,30 @@ async function createUserDirWithPreferences() {
29
29
  });
30
30
  const preferences = {
31
31
  plugins: {
32
- always_open_pdf_externally: true
32
+ always_open_pdf_externally: false,
33
+ plugins_disabled: false
34
+ },
35
+ profile: {
36
+ default_content_setting_values: {
37
+ plugins: 1,
38
+ popups: 0,
39
+ notifications: 0
40
+ },
41
+ default_content_settings: {
42
+ plugins: 1
43
+ }
44
+ },
45
+ download: {
46
+ open_pdf_in_system_reader: false
47
+ },
48
+ content_settings: {
49
+ pattern_pairs: {
50
+ "*,*": {
51
+ plugins: {
52
+ setting: 1
53
+ }
54
+ }
55
+ }
33
56
  }
34
57
  };
35
58
  await (0, _fsExtra.writeFile)((0, _path.join)(defaultDir, "Preferences"), JSON.stringify(preferences));
@@ -51,15 +74,15 @@ async function getProductionPlaywrightConstructs({
51
74
  devices: ["desktop"],
52
75
  operatingSystems: ["linux"]
53
76
  });
77
+ const extensionPath = _path.default.join(__dirname, "./assets/nopecha-extension");
54
78
  const context = await playwright.chromium.launchPersistentContext(userDataDir, {
55
79
  headless,
56
80
  viewport: null,
57
81
  proxy,
58
- downloadsPath
82
+ downloadsPath,
83
+ args: ["--load-extension=" + extensionPath]
59
84
  });
60
85
  const injector = new _fingerprintInjector.FingerprintInjector();
61
- console.log("Injecting fingerprint into Playwright context");
62
- console.log("Fingerprint:", fingerprint);
63
86
  await injector.attachFingerprintToPlaywright(context, fingerprint);
64
87
  context.once("close", async () => {
65
88
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.1.5-fingerprint.3",
3
+ "version": "1.1.5-fingerprint.5",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",