Skip to content

Commit 6457f20

Browse files
committed
✨ Support firefox
1 parent 72ceec9 commit 6457f20

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

bookmark/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"manifest_version": 3,
33
"name": "Maple Bookmarks",
44
"description": "Let you navigate smoothly while hiding the bookmark bar.",
5-
"version": "1.8",
5+
"version": "1.9",
66
"action": {
77
"default_popup": "popup.html"
88
},
99
"commands": {
1010
"_execute_action": {
1111
"suggested_key": {
12-
"default": "Ctrl+B",
12+
"default": "Ctrl+E",
1313
"mac": "Command+E"
1414
}
1515
}

bookmark/manifest_firefox.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Maple Bookmarks",
4+
"description": "Let you navigate smoothly while hiding the bookmark bar.",
5+
"version": "1.9",
6+
"action": {
7+
"default_popup": "popup.html"
8+
},
9+
"commands": {
10+
"_execute_action": {
11+
"suggested_key": {
12+
"default": "Ctrl+E"
13+
}
14+
}
15+
},
16+
"optional_host_permissions": ["*://*/*"],
17+
"permissions": ["bookmarks", "favicon"],
18+
"icons": {
19+
"16": "logo.png",
20+
"48": "logo.png",
21+
"128": "logo.png"
22+
}
23+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"main": "bookmark/popup.js",
66
"scripts": {
77
"bookmark": "zip -r ./dist/Maple.zip ./bookmark",
8+
"bookmark-firefox": "cp -R ./bookmark ./bookmark-firefox && cp ./bookmark/manifest_firefox.json ./bookmark-firefox/manifest.json && zip -r ./dist/FirefoxMaple.zip ./bookmark-firefox && rm -rf ./bookmark-firefox",
89
"newtab": "zip -r ./dist/NewTab.zip ./newtab",
9-
"build": "mkdir -p ./dist && yarn lint && yarn bookmark && yarn newtab",
10+
"build": "mkdir -p ./dist && yarn lint && yarn bookmark && yarn bookmark-firefox && yarn newtab",
1011
"lint": "eslint . --ext .js --fix"
1112
},
1213
"keywords": [

0 commit comments

Comments
 (0)