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
df96876306ff1a944f5f13d0989a065c146730c9
parent
92bf34e3deb21422a50293c800432d4dad5237bc
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-04-23 17:50
update to manifest v3

Diffstat

M manifest.json 17 +++++------------
M shared.js 2 +-

2 files changed, 6 insertions, 13 deletions


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

@@ -1,18 +1,13 @@
    1     1 {
    2    -1   "manifest_version": 2,
   -1     2   "manifest_version": 3,
    3     3   "name": "Bookmark Stack",
    4     4   "author": "Tobias Bengfort",
    5     5   "homepage_url": "https://github.com/xi/bookmark-stack",
    6     6   "description": "inspired by view later",
    7     7   "version": "1.1.2",
    8    -1   "browser_action": {
   -1     8   "action": {
    9     9     "default_title": "Bookmark Stack",
   10    -1     "default_popup": "stack.html",
   11    -1     "default_icon": {
   12    -1       "16": "icons/icon-16.png",
   13    -1       "48": "icons/icon-48.png",
   14    -1       "128": "icons/icon-128.png"
   15    -1     }
   -1    10     "default_popup": "stack.html"
   16    11   },
   17    12   "icons": {
   18    13     "16": "icons/icon-16.png",
@@ -23,14 +18,12 @@
   23    18     "scripts": [
   24    19       "shared.js",
   25    20       "bg.js"
   26    -1     ],
   27    -1     "persistent": true
   -1    21     ]
   28    22   },
   29    23   "permissions": [
   30    24     "bookmarks",
   31    25     "tabs",
   32    -1     "contextMenus",
   33    -1     "chrome://favicon/"
   -1    26     "contextMenus"
   34    27   ],
   35    28   "browser_specific_settings": {
   36    29     "gecko": {

diff --git a/shared.js b/shared.js

@@ -43,7 +43,7 @@ var getBookmarks = function(callback) {
   43    43 
   44    44 var updateCount = function(callback) {
   45    45 	getBookmarks(function(bookmarks) {
   46    -1 		chrome.browserAction.setBadgeText({text: '' + bookmarks.length});
   -1    46 		chrome.action.setBadgeText({text: '' + bookmarks.length});
   47    47 		if (callback) callback();
   48    48 	});
   49    49 };