Skip to content

Commit 8d7eb72

Browse files
authored
Migrated Chrome extension from Manifest V2 to Manifest V3. (#59)
1 parent 3938c7b commit 8d7eb72

File tree

3 files changed

+586
-23
lines changed

3 files changed

+586
-23
lines changed

src/manifest.json

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,28 @@
33
"name": "Scrum Helper Extension",
44
"version": "1.0",
55
"description": "This extension helps in writing Scrums in Google groups, particularly related to FOSSASIA. ",
6-
"browser_action": {
6+
"action": {
77
"default_popup": "popup.html",
8-
"default_title" : "SCRUM Helper"
8+
"default_title": "SCRUM Helper",
9+
"default_icon": {
10+
"96": "icons/icon.png",
11+
"48": "icons/icon.png"
12+
}
913
},
10-
"icons": {
11-
"96": "icons/icon.png",
12-
"48": "icons/icon.png"
13-
},
1414
"background": {
15-
"scripts": ["scripts/background.js"]
15+
"service_worker": "scripts/background.js"
1616
},
1717
"content_scripts": [
18-
{
19-
"matches": ["*://groups.google.com/forum/*", "*://groups.google.com/g/*"],
20-
"js": ["scripts/jquery-3.2.1.min.js","scripts/scrumHelper.js"]
21-
}
22-
],
23-
"content_security_policy": "script-src 'self' https://cdn.jsdelivr.net/ https://api.github.com/ https://use.fontawesome.com/; object-src 'self'",
18+
{
19+
"matches": ["*://groups.google.com/forum/*", "*://groups.google.com/g/*"],
20+
"js": ["scripts/jquery-3.2.1.min.js", "scripts/scrumHelper.js"]
21+
}
22+
],
2423

25-
"permissions":[
26-
"http://*/*",
27-
"tabs",
28-
"https://*/*",
29-
"storage",
30-
"activeTab",
31-
"<all_urls>",
32-
"notifications"
33-
]
24+
"content_security_policy": {
25+
"extension_pages": "script-src 'self'; object-src 'self';"
26+
},
27+
"optional_host_permissions": ["https://*/*", "http://*/*", "<all_urls>"],
3428

29+
"permissions": ["tabs", "storage", "activeTab", "notifications"]
3530
}

src/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
77
<link href="materialize/css/materialize.min.css" type="text/css" rel="stylesheet">
88
<link rel="stylesheet" type="text/css" href="index.css">
9-
<script src="https://use.fontawesome.com/73d6eff847.js"></script>
9+
<script src="./scripts/fontawesome.js"></script>
1010
<style type="text/css">
1111
html,body{
1212
width: 350px !important;

0 commit comments

Comments
 (0)