Skip to content

Commit 5f9b62d

Browse files
committed
chore: Add manifest files for Firefox and Chrome
1 parent 4173ef9 commit 5f9b62d

File tree

2 files changed

+61
-9
lines changed

2 files changed

+61
-9
lines changed

manifest.chrome.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Pixely Sort & Save",
4+
"version": "1.1.0",
5+
"description": "Salva imagens rapidamente em subpastas com nome aleatório.",
6+
"permissions": [
7+
"downloads",
8+
"downloads",
9+
"contextMenus",
10+
"storage",
11+
"activeTab"
12+
],
13+
"background": {
14+
"service_worker": "scripts/background.js"
15+
},
16+
"host_permissions": [
17+
"<all_urls>",
18+
"https://content.dropboxapi.com/*"
19+
],
20+
"action": {
21+
"default_popup": "./pages/index.html",
22+
"default_title": "Pixely Sort & Save",
23+
"default_icon": {
24+
"16": "icons/iconx16.png",
25+
"32": "icons/iconx32.png",
26+
"48": "icons/iconx48.png",
27+
"64": "icons/iconx64.png",
28+
"72": "icons/iconx72.png",
29+
"128": "icons/iconx128.png",
30+
"256": "icons/iconx256.png"
31+
}
32+
},
33+
"content_scripts": [
34+
{
35+
"matches": ["<all_urls>"],
36+
"js": ["lib/browser-polyfill.min.js", "scripts/content_script.js"]
37+
}
38+
],
39+
"options_ui": {
40+
"page": "./pages/options.html",
41+
"open_in_tab": true
42+
},
43+
"icons": {
44+
"16": "icons/iconx16.png",
45+
"32": "icons/iconx32.png",
46+
"48": "icons/iconx48.png",
47+
"64": "icons/iconx64.png",
48+
"72": "icons/iconx72.png",
49+
"128": "icons/iconx128.png",
50+
"256": "icons/iconx256.png"
51+
}
52+
}

manifest.json renamed to manifest.firefox.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"manifest_version": 3,
2+
"manifest_version": 2,
33
"name": "Pixely Sort & Save",
44
"version": "1.1.0",
55
"description": "Salva imagens rapidamente em subpastas com nome aleatório.",
@@ -8,22 +8,22 @@
88
"downloads.open",
99
"contextMenus",
1010
"storage",
11-
"activeTab"
11+
"activeTab",
12+
"<all_urls>",
13+
"https://content.dropboxapi.com/*"
14+
1215
],
1316
"background": {
1417
"scripts": [
1518
"lib/browser-polyfill.min.js",
1619
"scripts/utils.js",
1720
"scripts/download.js",
21+
"scripts/dropbox.js",
1822
"scripts/background.js"
19-
],
20-
"service_worker": "scripts/background.js"
23+
]
2124
},
22-
"host_permissions": [
23-
"<all_urls>",
24-
"https://content.dropboxapi.com/*"
25-
],
26-
"action": {
25+
26+
"browser_action": {
2727
"default_popup": "./pages/index.html",
2828
"default_title": "Pixely Sort & Save",
2929
"default_icon": {

0 commit comments

Comments
 (0)