-
-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathmanifest.ts
More file actions
82 lines (78 loc) · 1.81 KB
/
manifest.ts
File metadata and controls
82 lines (78 loc) · 1.81 KB
1
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
import { ManifestV3Export } from "@crxjs/vite-plugin"
const baseManifest: ManifestV3Export = {
manifest_version: 3,
version: '2.7.3',
name: 'My Fingerprint',
default_locale: 'en',
description: '__MSG_ext_desc__',
host_permissions: [
'<all_urls>',
],
icons: {
128: 'logo.png',
},
action: {
default_popup: "src/popup/index.html",
},
web_accessible_resources: []
}
const VALUES = {
permissions: [
'storage',
'tabs',
'activeTab',
'webNavigation',
'scripting',
'declarativeNetRequest',
'clipboardRead',
'clipboardWrite',
] as chrome.runtime.ManifestPermissions[],
optional_permissions: [
"userScripts",
] as chrome.runtime.ManifestPermissions[],
background: "src/background/index.ts",
content: {
matches: ["<all_urls>"],
js: ["src/scripts/content.ts"],
run_at: "document_start",
match_about_blank: true,
// all_frames: true,
},
}
export const chromeManifest: ManifestV3Export = {
...baseManifest,
minimum_chrome_version: '102',
key: "b21lZ2FlZS9teS1maW5nZXJwcmludAo=",
update_url: 'https://raw.githubusercontent.com/omegaee/my-fingerprint/refs/heads/main/updates.xml',
permissions: [
...VALUES.permissions,
...VALUES.optional_permissions,
],
background: {
service_worker: VALUES.background,
},
content_scripts: [
{
// @ts-ignore
world: "ISOLATED",
...VALUES.content,
},
],
}
export const firefoxManifest: ManifestV3Export & { [key: string]: any } = {
...baseManifest,
browser_specific_settings: {
gecko: {
id: "my-fingerprint@omegaee.addons",
strict_min_version: "136.0"
}
},
permissions: VALUES.permissions,
optional_permissions: VALUES.optional_permissions,
background: {
scripts: [VALUES.background],
},
content_scripts: [
VALUES.content,
],
}