Skip to content

Commit

Permalink
✨ Support firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Sep 9, 2023
1 parent 72ceec9 commit 6457f20
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bookmark/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"manifest_version": 3,
"name": "Maple Bookmarks",
"description": "Let you navigate smoothly while hiding the bookmark bar.",
"version": "1.8",
"version": "1.9",
"action": {
"default_popup": "popup.html"
},
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+B",
"default": "Ctrl+E",
"mac": "Command+E"
}
}
Expand Down
23 changes: 23 additions & 0 deletions bookmark/manifest_firefox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"manifest_version": 3,
"name": "Maple Bookmarks",
"description": "Let you navigate smoothly while hiding the bookmark bar.",
"version": "1.9",
"action": {
"default_popup": "popup.html"
},
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+E"
}
}
},
"optional_host_permissions": ["*://*/*"],
"permissions": ["bookmarks", "favicon"],
"icons": {
"16": "logo.png",
"48": "logo.png",
"128": "logo.png"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"main": "bookmark/popup.js",
"scripts": {
"bookmark": "zip -r ./dist/Maple.zip ./bookmark",
"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",
"newtab": "zip -r ./dist/NewTab.zip ./newtab",
"build": "mkdir -p ./dist && yarn lint && yarn bookmark && yarn newtab",
"build": "mkdir -p ./dist && yarn lint && yarn bookmark && yarn bookmark-firefox && yarn newtab",
"lint": "eslint . --ext .js --fix"
},
"keywords": [
Expand Down

0 comments on commit 6457f20

Please sign in to comment.