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
d07083cdf45e409adb918b296987157e4ed453f1
parent
a4b6c3ee27dd92418d120a14112d7cc441a7ee55
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-02-08 07:43
allow to push links directly

Diffstat

M bg.js 11 +++++++++++

1 files changed, 11 insertions, 0 deletions


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

@@ -2,6 +2,7 @@
    2     2 
    3     3 chrome.contextMenus.create({
    4     4 	title: 'read later',
   -1     5 	contexts: ['page'],
    5     6 	onclick: function(info, tab) {
    6     7 		pushBookmark(tab, function() {
    7     8 			chrome.tabs.remove(tab.id);
@@ -9,4 +10,14 @@ chrome.contextMenus.create({
    9    10 	},
   10    11 });
   11    12 
   -1    13 chrome.contextMenus.create({
   -1    14 	title: 'read link later',
   -1    15 	contexts: ['link'],
   -1    16 	onclick: function(info) {
   -1    17 		pushBookmark({
   -1    18 			url: info.linkUrl,
   -1    19 		});
   -1    20 	},
   -1    21 });
   -1    22 
   12    23 updateCount();