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
d3a596b51aa5cb148d9c750270301c86106ec947
parent
0be04353a9e88eb42b7b6861d4d7384bc7fc209e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-11-25 22:01
Revert "make compatible with event pages"

This reverts parts of commit 14c626384afc8d1728798d22661a04b1f0d20837.

The context menus were not available reliably.

Diffstat

M bg.js 20 +++++++++-----------
M manifest.json 2 +-

2 files changed, 10 insertions, 12 deletions


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

@@ -1,15 +1,13 @@
    1    -1  chrome.runtime.onInstalled.addListener(function() {
    2    -1 	chrome.contextMenus.create({
    3    -1 		id: 'read-later',
    4    -1 		title: 'read later',
    5    -1 		contexts: ['page', 'selection', 'editable', 'image', 'tab'],
    6    -1 	});
   -1     1 chrome.contextMenus.create({
   -1     2 	id: 'read-later',
   -1     3 	title: 'read later',
   -1     4 	contexts: ['page', 'selection', 'editable', 'image', 'tab'],
   -1     5 });
    7     6 
    8    -1 	chrome.contextMenus.create({
    9    -1 		id: 'read-later-link',
   10    -1 		title: 'read link later',
   11    -1 		contexts: ['link'],
   12    -1 	});
   -1     7 chrome.contextMenus.create({
   -1     8 	id: 'read-later-link',
   -1     9 	title: 'read link later',
   -1    10 	contexts: ['link'],
   13    11 });
   14    12 
   15    13 chrome.contextMenus.onClicked.addListener(function(info, tab) {

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

@@ -24,7 +24,7 @@
   24    24       "shared.js",
   25    25       "bg.js"
   26    26     ],
   27    -1     "persistent": false
   -1    27     "persistent": true
   28    28   },
   29    29   "permissions": [
   30    30     "bookmarks",