jumpy-lion 0.0.34 → 0.0.35
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.
- package/dist/fingerprinting/anti-webgpu/background.js +4 -6
- package/dist/fingerprinting/anti-webgpu/data/content_script/inject.js +42 -42
- package/dist/fingerprinting/anti-webgpu/data/content_script/page_context/inject.js +172 -179
- package/dist/fingerprinting/anti-webgpu/data/icons/128.png +0 -0
- package/dist/fingerprinting/anti-webgpu/data/icons/16.png +0 -0
- package/dist/fingerprinting/anti-webgpu/data/icons/32.png +0 -0
- package/dist/fingerprinting/anti-webgpu/data/icons/48.png +0 -0
- package/dist/fingerprinting/anti-webgpu/data/icons/64.png +0 -0
- package/dist/fingerprinting/anti-webgpu/data/popup/popup.css +88 -0
- package/dist/fingerprinting/anti-webgpu/data/popup/popup.html +58 -0
- package/dist/fingerprinting/anti-webgpu/data/popup/popup.js +96 -95
- package/dist/fingerprinting/anti-webgpu/lib/chrome.js +249 -255
- package/dist/fingerprinting/anti-webgpu/lib/common.js +71 -72
- package/dist/fingerprinting/anti-webgpu/lib/config.js +14 -13
- package/dist/fingerprinting/anti-webgpu/lib/runtime.js +107 -109
- package/dist/fingerprinting/anti-webgpu/manifest.json +58 -0
- package/package.json +2 -2
|
@@ -1,255 +1,249 @@
|
|
|
1
|
-
var app = {};
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
export {};
|
|
255
|
-
//# sourceMappingURL=chrome.js.map
|
|
1
|
+
var app = {};
|
|
2
|
+
|
|
3
|
+
app.error = function () {
|
|
4
|
+
return chrome.runtime.lastError;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
app.name = function () {
|
|
8
|
+
return chrome.runtime.getManifest().name;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
app.notifications = {
|
|
12
|
+
"create": function (e, callback) {
|
|
13
|
+
if (chrome.notifications) {
|
|
14
|
+
chrome.notifications.create(app.notifications.id, {
|
|
15
|
+
"type": e.type ? e.type : "basic",
|
|
16
|
+
"message": e.message ? e.message : '',
|
|
17
|
+
"title": e.title ? e.title : "Notifications",
|
|
18
|
+
"iconUrl": e.iconUrl ? chrome.runtime.getURL(e.iconUrl) : chrome.runtime.getURL("data/icons/64.png")
|
|
19
|
+
}, function (e) {
|
|
20
|
+
if (callback) callback(e);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
app.popup = {
|
|
27
|
+
"port": null,
|
|
28
|
+
"message": {},
|
|
29
|
+
"receive": function (id, callback) {
|
|
30
|
+
if (id) {
|
|
31
|
+
app.popup.message[id] = callback;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"send": function (id, data) {
|
|
35
|
+
if (id) {
|
|
36
|
+
chrome.runtime.sendMessage({"data": data, "method": id, "path": "background-to-popup"}, app.error);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"post": function (id, data) {
|
|
40
|
+
if (id) {
|
|
41
|
+
if (app.popup.port) {
|
|
42
|
+
app.popup.port.postMessage({"data": data, "method": id, "path": "background-to-popup"});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
app.contextmenu = {
|
|
49
|
+
"create": function (options, callback) {
|
|
50
|
+
if (chrome.contextMenus) {
|
|
51
|
+
chrome.contextMenus.create(options, function (e) {
|
|
52
|
+
if (callback) callback(e);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"update": function (id, options, callback) {
|
|
57
|
+
if (chrome.contextMenus) {
|
|
58
|
+
chrome.contextMenus.update(id, options, function (e) {
|
|
59
|
+
if (callback) callback(e);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"on": {
|
|
64
|
+
"clicked": function (callback) {
|
|
65
|
+
if (chrome.contextMenus) {
|
|
66
|
+
chrome.contextMenus.onClicked.addListener(function (info, tab) {
|
|
67
|
+
app.storage.load(function () {
|
|
68
|
+
callback(info, tab);
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
app.tab = {
|
|
77
|
+
"query": {
|
|
78
|
+
"index": function (callback) {
|
|
79
|
+
chrome.tabs.query({"active": true, "currentWindow": true}, function (tabs) {
|
|
80
|
+
let tmp = chrome.runtime.lastError;
|
|
81
|
+
if (tabs && tabs.length) {
|
|
82
|
+
callback(tabs[0].index);
|
|
83
|
+
} else callback(undefined);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"open": function (url, index, active, callback) {
|
|
88
|
+
const properties = {
|
|
89
|
+
"url": url,
|
|
90
|
+
"active": active !== undefined ? active : true
|
|
91
|
+
};
|
|
92
|
+
/* */
|
|
93
|
+
if (index !== undefined) {
|
|
94
|
+
if (typeof index === "number") {
|
|
95
|
+
properties.index = index + 1;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/* */
|
|
99
|
+
chrome.tabs.create(properties, function (tab) {
|
|
100
|
+
if (callback) callback(tab);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
app.storage = {
|
|
106
|
+
"local": {},
|
|
107
|
+
"read": function (id) {
|
|
108
|
+
return app.storage.local[id];
|
|
109
|
+
},
|
|
110
|
+
"update": function (callback) {
|
|
111
|
+
if (app.session) app.session.load();
|
|
112
|
+
/* */
|
|
113
|
+
chrome.storage.local.get(null, function (e) {
|
|
114
|
+
app.storage.local = e;
|
|
115
|
+
if (callback) {
|
|
116
|
+
callback("update");
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
},
|
|
120
|
+
"write": function (id, data, callback) {
|
|
121
|
+
let tmp = {};
|
|
122
|
+
tmp[id] = data;
|
|
123
|
+
app.storage.local[id] = data;
|
|
124
|
+
/* */
|
|
125
|
+
chrome.storage.local.set(tmp, function (e) {
|
|
126
|
+
if (callback) {
|
|
127
|
+
callback(e);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
"load": function (callback) {
|
|
132
|
+
const keys = Object.keys(app.storage.local);
|
|
133
|
+
if (keys && keys.length) {
|
|
134
|
+
if (callback) {
|
|
135
|
+
callback("cache");
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
app.storage.update(function () {
|
|
139
|
+
if (callback) callback("disk");
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
app.on = {
|
|
146
|
+
"management": function (callback) {
|
|
147
|
+
chrome.management.getSelf(callback);
|
|
148
|
+
},
|
|
149
|
+
"uninstalled": function (url) {
|
|
150
|
+
chrome.runtime.setUninstallURL(url, function () {});
|
|
151
|
+
},
|
|
152
|
+
"installed": function (callback) {
|
|
153
|
+
chrome.runtime.onInstalled.addListener(function (e) {
|
|
154
|
+
app.storage.load(function () {
|
|
155
|
+
callback(e);
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
"startup": function (callback) {
|
|
160
|
+
chrome.runtime.onStartup.addListener(function (e) {
|
|
161
|
+
app.storage.load(function () {
|
|
162
|
+
callback(e);
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
"connect": function (callback) {
|
|
167
|
+
chrome.runtime.onConnect.addListener(function (e) {
|
|
168
|
+
app.storage.load(function () {
|
|
169
|
+
if (callback) callback(e);
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
},
|
|
173
|
+
"storage": function (callback) {
|
|
174
|
+
chrome.storage.onChanged.addListener(function (changes, namespace) {
|
|
175
|
+
app.storage.update(function () {
|
|
176
|
+
if (callback) {
|
|
177
|
+
callback(changes, namespace);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
"message": function (callback) {
|
|
183
|
+
chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
|
|
184
|
+
app.storage.load(function () {
|
|
185
|
+
callback(request, sender, sendResponse);
|
|
186
|
+
});
|
|
187
|
+
/* */
|
|
188
|
+
return true;
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
app.page = {
|
|
194
|
+
"port": null,
|
|
195
|
+
"message": {},
|
|
196
|
+
"sender": {
|
|
197
|
+
"port": {}
|
|
198
|
+
},
|
|
199
|
+
"receive": function (id, callback) {
|
|
200
|
+
if (id) {
|
|
201
|
+
app.page.message[id] = callback;
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"post": function (id, data, tabId) {
|
|
205
|
+
if (id) {
|
|
206
|
+
if (tabId) {
|
|
207
|
+
if (app.page.sender.port[tabId]) {
|
|
208
|
+
app.page.sender.port[tabId].postMessage({"data": data, "method": id, "path": "background-to-page"});
|
|
209
|
+
}
|
|
210
|
+
} else if (app.page.port) {
|
|
211
|
+
app.page.port.postMessage({"data": data, "method": id, "path": "background-to-page"});
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"send": function (id, data, tabId, frameId) {
|
|
216
|
+
if (id) {
|
|
217
|
+
chrome.tabs.query({}, function (tabs) {
|
|
218
|
+
let tmp = chrome.runtime.lastError;
|
|
219
|
+
if (tabs && tabs.length) {
|
|
220
|
+
const message = {
|
|
221
|
+
"method": id,
|
|
222
|
+
"data": data ? data : {},
|
|
223
|
+
"path": "background-to-page"
|
|
224
|
+
};
|
|
225
|
+
/* */
|
|
226
|
+
tabs.forEach(function (tab) {
|
|
227
|
+
if (tab) {
|
|
228
|
+
message.data.tabId = tab.id;
|
|
229
|
+
message.data.top = tab.url ? tab.url : '';
|
|
230
|
+
message.data.title = tab.title ? tab.title : '';
|
|
231
|
+
/* */
|
|
232
|
+
if (tabId !== null && tabId !== undefined) {
|
|
233
|
+
if (tabId === tab.id) {
|
|
234
|
+
if (frameId !== null && frameId !== undefined) {
|
|
235
|
+
chrome.tabs.sendMessage(tab.id, message, {"frameId": frameId}, app.error);
|
|
236
|
+
} else {
|
|
237
|
+
chrome.tabs.sendMessage(tab.id, message, app.error);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
} else {
|
|
241
|
+
chrome.tabs.sendMessage(tab.id, message, app.error);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
};
|