From ee25777594adabed51f48c8d8c999a23f40d9595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4f?= Date: Sat, 31 Aug 2024 12:43:30 +0200 Subject: [PATCH] consolidating firefox and chrome and opera versions, moving back to 'main' --- package.json | 4 +- scripts/dev.sh | 2 +- src-bex/manifest-edge.json | 90 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 src-bex/manifest-edge.json diff --git a/package.json b/package.json index 5eedec6f..dfc3a0ae 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "private": true, "scripts": { "dev": "quasar dev -m bex", - "dev-firefox": "mv src-bex/manifest.json src-bex/manifest.tmp && cp src-bex/manifest-firefox.json src-bex/manifest.json && quasar dev -m bex && mv src-bex/manifest.tmp src-bex/manifest.json", - "dev-edge": "mv src-bex/manifest.json src-bex/manifest.tmp && cp src-bex/manifest-edge.json src-bex/manifest.json && quasar dev -m bex && mv src-bex/manifest.tmp src-bex/manifest.json", + "dev-firefox": "scripts/dev.sh firefox", + "dev-edge": "scripts/dev.sh edge", "dev-opera": "scripts/dev.sh opera", "dev spa (only for testing)": "quasar dev -m spa", "dev pwa": "quasar dev -m pwa", diff --git a/scripts/dev.sh b/scripts/dev.sh index 7e6e1f25..55f4ad2a 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -7,7 +7,7 @@ if [ $# -eq 0 ] fi if [ "$1" = "chrome" ]; then - manifest="manifest.json" + manifest="manifest-chrome.json" elif [ "$1" = "firefox" ]; then manifest="manifest-firefox.json" elif [ "$1" = "edge" ]; then diff --git a/src-bex/manifest-edge.json b/src-bex/manifest-edge.json new file mode 100644 index 00000000..9ce4cf90 --- /dev/null +++ b/src-bex/manifest-edge.json @@ -0,0 +1,90 @@ +{ + "manifest_version": 3, + "icons": { + "16": "icons/icon-16x16.png", + "48": "icons/icon-48x48.png", + "128": "icons/icon-128x128.png" + }, + "permissions": [ + "storage", + "tabs", + "activeTab", + "alarms", + "scripting", + "sidePanel", + "contextMenus", + "bookmarks" + ], + "optional_permissions": [ + "pageCapture", + "notifications", + "webRequest", + "tabGroups" + ], + "host_permissions": [ + "", + "*://*/*" + ], + "sidebar_action": { + "default_icon": "icons/icon-48x48.png", + "default_title": "tabsets.bet - Better Bookmarks", + "default_panel": "www/sidepanel.html" + }, + "background": { + "service_worker": "background.js" + }, + "content_scripts": [ + { + "matches": [ + "*://*/*" + ], + "js": [ + "tabsets-content-script.js" + ] + } + ], + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self';" + }, + "web_accessible_resources": [ + { + "resources": [ + "*" + ], + "matches": [ + "*://*/*" + ] + } + ], + "omnibox": { "keyword": "ts" }, + "commands": { + "_execute_action": { + "suggested_key": { + "default": "Ctrl+B", + "mac": "Command+B" + } + }, + "search": { + "suggested_key": { + "default": "Ctrl+K", + "mac": "Command+K" + }, + "description": "Open Search Box" + }, + "tabHistoryBack": { + "suggested_key": { + "default": "Alt+Left", + "mac": "Alt+Left" + }, + "description": "Open last open tab" + }, + "tabHistoryForward": { + "suggested_key": { + "default": "Alt+Right", + "mac": "Alt+Right" + }, + "description": "Forward to next tab (if available)" + } + }, + "options_page": "www/index.html#/mainpanel/settings" +}