bookmark-stack

web extension to save pages in a stack for reading them later  https://addons.mozilla.org/firefox/addon/bookmark-stack/
git clone https://git.ce9e.org/bookmark-stack.git

commit
c2996f71538811e5f7cf80d1571a169baf5b8bd6
parent
7575279136254c6933119361042ee5a5ee69d2e3
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-04-24 07:46
add keyboard shortcut

Diffstat

M manifest.chromium.json 7 ++++++-
M manifest.json 5 +++++
M src/bg.js 7 +++++++

3 files changed, 18 insertions, 1 deletions


diff --git a/manifest.chromium.json b/manifest.chromium.json

@@ -23,5 +23,10 @@
   23    23     "tabs",
   24    24     "contextMenus",
   25    25     "favicon"
   26    -1   ]
   -1    26   ],
   -1    27   "commands": {
   -1    28     "push-bookmark": {
   -1    29       "description": "push the current tab to the stack"
   -1    30     }
   -1    31   }
   27    32 }

diff --git a/manifest.json b/manifest.json

@@ -23,6 +23,11 @@
   23    23     "tabs",
   24    24     "contextMenus"
   25    25   ],
   -1    26   "commands": {
   -1    27     "push-bookmark": {
   -1    28       "description": "push the current tab to the stack"
   -1    29     }
   -1    30   },
   26    31   "browser_specific_settings": {
   27    32     "gecko": {
   28    33       "id": "{4184dc66-ea2a-490f-8f02-21731ee99742}"

diff --git a/src/bg.js b/src/bg.js

@@ -36,4 +36,11 @@ chrome.contextMenus.onClicked.addListener(async function(info, tab) {
   36    36 	}
   37    37 });
   38    38 
   -1    39 chrome.commands.onCommand.addListener(async function(name, tab) {
   -1    40 	if (name === 'push-bookmark') {
   -1    41 		await pushBookmark(tab);
   -1    42 		await chrome.tabs.remove(tab.id);
   -1    43 	}
   -1    44 });
   -1    45 
   39    46 updateCount();