/
manifest.json
91 lines (91 loc) · 2.34 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
{
"manifest_version": 3,
"name": "WCA Staff Helper",
"description": "Helper extension to link and reference WCA Regulations and Guidelines, WCA IDs and other documents.",
"version": "1.2.0",
"browser_specific_settings": {
"gecko": {
"strict_min_version": "109.0"
}
},
"action": {
"default_popup": "html/popup.html",
"default_icon": "img/toolbar-icon.png"
},
"content_scripts": [
{
"matches": [
"https://www.worldcubeassociation.org/*",
"https://forum.worldcubeassociation.org/*",
"https://mail.google.com/*"
],
"js": ["scripts/purify.min.js", "scripts/content/base.js"]
},
{
"matches": ["https://www.worldcubeassociation.org/*"],
"js": ["scripts/content/wca-website.js"]
},
{
"matches": ["https://forum.worldcubeassociation.org/*"],
"js": ["scripts/content/wca-forum.js"]
},
{
"matches": ["https://mail.google.com/*"],
"js": ["scripts/content/gmail.js"]
},
{
"matches": [
"https://www.worldcubeassociation.org/*",
"https://forum.worldcubeassociation.org/*",
"https://mail.google.com/*"
],
"js": ["scripts/content/main.js"]
}
],
"background": {
"scripts": ["scripts/background.js"]
},
"host_permissions": [
"https://www.worldcubeassociation.org/*",
"https://forum.worldcubeassociation.org/*",
"https://mail.google.com/*"
],
"permissions": [
"storage",
"scripting"
],
"web_accessible_resources": [
{
"resources": [
"img/close.svg",
"img/pin.svg",
"css/regulations_box.css"
],
"matches": [
"https://www.worldcubeassociation.org/*",
"https://forum.worldcubeassociation.org/*",
"https://mail.google.com/*"
]
}
],
"commands": {
"short-replace": {
"suggested_key": {
"default": "Ctrl+Shift+Comma"
},
"description": "Keep the selected text and add the link."
},
"long-replace": {
"suggested_key": {
"default": "Ctrl+Shift+Space"
},
"description": "Replace the selected text with the long name of the document and the link."
},
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Shift+Period"
},
"description": "Show the selected Regulation or Guideline in the popup."
}
}
}