-
Notifications
You must be signed in to change notification settings - Fork 41
/
manifest.config.ts
92 lines (89 loc) · 2.8 KB
/
manifest.config.ts
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
83
84
85
86
87
88
89
90
91
92
import { defineManifest } from '@crxjs/vite-plugin'
import { ConfigEnv } from 'vite'
import { version } from './package.json'
export default defineManifest((env: ConfigEnv) => {
const isDev = env.mode === 'development'
return {
name: "MetaSuites - Builders' Swiss Army Knife",
description:
'Integrating 30+ popular Web3 and AI Tools, 300M+ Address Labels, and the Fund Flow Map into a single extension.',
version: version,
manifest_version: 3,
icons: {
'16': 'src/assets/icons/icon16.png',
'32': 'src/assets/icons/icon32.png',
'48': 'src/assets/icons/icon48.png',
'64': 'src/assets/icons/icon64.png',
'128': 'src/assets/icons/icon128.png'
},
content_scripts: [
{
matches: isDev
? [
'*://*.etherscan.io/*',
'*://*.etherscan.com/*',
'*://*.bscscan.com/*',
'*://*.polygonscan.com/*',
'*://optimistic.etherscan.io/*',
'*://*.arbiscan.io/*',
'*://*.ftmscan.com/*',
'*://cronoscan.com/*',
'*://*.moonscan.io/*',
'*://*.basescan.org/*',
'*://*.lineascan.build/*',
'*://*.wemixscan.com/*',
'*://gnosisscan.io/*',
'*://*.celoscan.io/*',
'*://*.bttcscan.com/*',
'*://era.zksync.network/*',
'*://snowscan.xyz/*',
'*://mantlescan.xyz/*'
]
: ['<all_urls>'],
js: ['src/content/index.all_frames.ts'],
all_frames: true
},
{
matches: isDev
? [
'*://*.btc.com/*',
'*://*.opensea.io/*',
'*://*.tronscan.org/*',
'*://scan.merlinchain.io/*',
'*://solscan.io/*',
'*://*.solana.fm/*',
'*://*.metasleuth.io/*',
'*://explorer.solana.com/*',
'*://debank.com/*',
'*://platform.arkhamintelligence.com/*',
'*://explorer.jito.wtf/*',
'*://*.oklink.com/*'
]
: ['<all_urls>'],
js: ['src/content/index.ts'],
all_frames: false
}
],
background: {
service_worker: 'src/background/index.ts'
},
web_accessible_resources: [
{
matches: ['<all_urls>'],
resources: ['src/assets/images/*.png', 'src/assets/js/*.js']
}
],
action: {
default_popup: 'src/popup/popup.html',
default_icon: {
'16': 'src/assets/icons/icon16.png',
'32': 'src/assets/icons/icon32.png',
'48': 'src/assets/icons/icon48.png',
'64': 'src/assets/icons/icon64.png',
'128': 'src/assets/icons/icon128.png'
}
},
permissions: ['storage', 'webRequest'],
host_permissions: ['<all_urls>']
}
})