Skip to content

Commit 0c0afe8

Browse files
committed
Update manifest.json
1 parent a7a8fec commit 0c0afe8

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

manifest.json

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
{
22
"manifest_version": 3,
33
"name": "Coursera Automation Extension",
4-
"version": "1.4.0",
4+
"version": "2.4.0",
55
"author": "Saurav Hathi",
66
"version_name": "Release Version",
77
"description": "This extension is used to attempt the coursera course quiz, video, reading material, ungraded plugin and discussion automatically.",
8-
"permissions": [
9-
"storage",
10-
"activeTab",
11-
"scripting",
12-
"tabs"
13-
],
8+
"permissions": ["storage", "activeTab", "scripting", "tabs", "commands"],
149
"background": {
1510
"service_worker": "/scripts/background.js"
1611
},
@@ -20,25 +15,38 @@
2015
"48": "images/3.png",
2116
"128": "images/4.png"
2217
},
18+
"action": {
19+
"default_popup": "/popup/popup.html"
20+
},
2321
"content_scripts": [
2422
{
2523
"run_at": "document_start",
26-
"matches": [
27-
"*://*.coursera.org/*"
28-
],
29-
"js": [
30-
"/scripts/minifyContent.js"
31-
],
32-
"css": [
33-
"/styles/content.css"
34-
]
24+
"matches": ["*://*.coursera.org/*"],
25+
"js": ["/scripts/minifyContent.js"],
26+
"css": ["/styles/content.css"]
3527
}
3628
],
29+
"commands": {
30+
"open_popup_1": {
31+
"suggested_key": {
32+
"default": "Alt+B",
33+
"mac": "Command+B"
34+
},
35+
"description": "Open the Course Automation Extension popup window with Alt+B"
36+
},
37+
"open_popup_2": {
38+
"suggested_key": {
39+
"default": "Alt+W",
40+
"mac": "Command+W"
41+
},
42+
"description": "Open the Course Automation Extension popup window with Alt+W"
43+
}
44+
},
3745
"web_accessible_resources": [
3846
{
3947
"resources": ["minifyrdr.js"],
4048
"matches": ["*://*.coursera.org/*"]
4149
}
4250
],
43-
"host_permissions": ["<all_urls>"]
44-
}
51+
"host_permissions": ["*://*.coursera.org/*"]
52+
}

0 commit comments

Comments
 (0)