-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.json
51 lines (51 loc) · 1.3 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
{
"manifest_version": 2,
"name": "ChromeFill",
"version": "0.1",
"description": "Dynamically injects polyfills into sites to support newer JavaScript",
"author": "InterLinked",
"permissions": [
"webRequest", // needed for modifying user agent
"webRequestBlocking",
"https://*/*",
"http://*/*"
],
"content_scripts": [
{
"matches": [
"https://github.com/*" // GitHub, at present, insists on using the evil nullish coalescing and optional chaining
// Add other sites here that use evil nullish coalescing and optional chaining. If we can get by with just polyfills, don't transpile.
// Avoid transpiling except as a last resort, because it's SLOW and blocking, not to mention VERY memory and CPU intensive
// e.g. GitHub takes 15 seconds on my machine to transpile
],
"js": [
"babel.min.js"
],
"run_at": "document_start",
"all_frames": true
},
{
"matches": [
"https://*/*",
"http://*/*"
],
"js": [
"polyfills.js"
],
"run_at": "document_start",
"all_frames": true
}
],
"background": {
"scripts": [
"useragent.js"
],
"persistent": true
},
"icons": {
"16": "images/icon16.png",
"32": "images/icon32.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
}
}