-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.json
113 lines (98 loc) · 2.83 KB
/
manifest.json
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"name": "Factotum",
// XXX: "homepage_url": "",
"version": "{{VERSION}}",
"manifest_version": 2,
"description": "User-defined functions for Chrome",
"icons": {
"128": "icons/factotum-128.png"
},
"omnibox": { "keyword": "f" },
"default_locale": "en",
"content_scripts": [{
// XXX: consider loading these at the beginning, otherwise inject.js
// won't be loaded until the document is done, which means an
// Fcommand can't be run until the document is loaded.
"matches": [ "<all_urls>" ],
"match_about_blank": true,
// XXX: not sure if this is needed. If it is, how do you know which
// content script will get the request from the bg page?
// "all_frames": true,
"js": [
"node_modules/webextension-polyfill/dist/browser-polyfill.js",
"scripts/content.js"
]
}],
"background": {
"scripts": [
"node_modules/webextension-polyfill/dist/browser-polyfill.js",
"scripts/background.js"
]
},
// Yes, ask for all permissions possible. This extension exists to
// allow the user to do anything, so it has to have permission to do
// anything.
"permissions": [
"<all_urls>",
"activeTab",
"alarms",
"bookmarks",
"browsingData",
"clipboardRead",
"clipboardWrite",
"contentSettings",
"contextMenus",
"cookies",
"debugger",
"declarativeContent",
"declarativeWebRequest",
"desktopCapture",
"downloads",
"fontSettings",
"gcm",
"geolocation",
"history",
"identity",
"idle",
"management",
"nativeMessaging",
"notifications",
"pageCapture",
"power",
"printerProvider",
"privacy",
"proxy",
"sessions",
"storage",
"system.cpu",
"system.display",
"system.memory",
"system.storage",
"tabCapture",
"tabs",
"topSites",
"tts",
"ttsEngine",
"unlimitedStorage",
"webNavigation",
"webRequest",
"webRequestBlocking"
],
// Allow the background script to evaluate JS
"content_security_policy":
"script-src 'self' 'unsafe-eval'; object-src 'self'",
"browser_action": {
"default_icon": "icons/factotum-128.png",
"default_title": "Factotum",
"default_popup": "html/popup.html"
},
// "minimum_chrome_version": XXX,
"offline_enabled": false,
"web_accessible_resources": [
"scripts/ConfigDialog.js",
"scripts/ContentScript.js",
"scripts/inject.js",
"scripts/TransferObject.js",
"node_modules/@webcomponents/html-imports/html-imports.min.js"
]
}