zhepama commited on
Commit
e678c4b
·
verified ·
1 Parent(s): 7e2ca02

Update src/index.ts

Browse files
Files changed (1) hide show
  1. src/index.ts +1 -19
src/index.ts CHANGED
@@ -94,25 +94,7 @@ async function initGensparkPage(cookies?: any[]) {
94
  }
95
  return imageData;
96
  };
97
-
98
- // Override Chrome-specific properties
99
- window.chrome = {
100
- runtime: {},
101
- loadTimes: function() {},
102
- csi: function() {},
103
- app: {}
104
- };
105
-
106
- // Spoof notification permissions
107
- if (navigator.permissions) {
108
- const originalQuery = navigator.permissions.query;
109
- navigator.permissions.query = function(parameters) {
110
- if (parameters.name === 'notifications') {
111
- return Promise.resolve({ state: Notification.permission });
112
- }
113
- return originalQuery.call(this, parameters);
114
- };
115
- }
116
  });
117
  // Simulate human-like behavior
118
  await gensparkPage.addInitScript(() => {
 
94
  }
95
  return imageData;
96
  };
97
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  });
99
  // Simulate human-like behavior
100
  await gensparkPage.addInitScript(() => {