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
86eb391a6b9ad1ad247f9540866bc54fdfccff87
parent
b098c2583660ca96df63f591a5a8cf72e9c6fc97
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-10-31 10:56
use icon fallback on firefox

Diffstat

M stack.html 1 +
M stack.js 8 +++++++-

2 files changed, 8 insertions, 1 deletions


diff --git a/stack.html b/stack.html

@@ -30,6 +30,7 @@ a:focus {
   30    30 .icon {
   31    31 	vertical-align: middle;
   32    32 	margin-right: 0.5em;
   -1    33 	width: 16px;
   33    34 }
   34    35 </style>
   35    36 

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

@@ -5,7 +5,13 @@ var render = function(element, items) {
    5     5 	items.forEach(function(item) {
    6     6 		var icon = document.createElement('img');
    7     7 		icon.className = 'icon';
    8    -1 		icon.src = 'chrome://favicon/' + item.url;
   -1     8 
   -1     9 		if (chrome && !browser) {
   -1    10 			icon.src = 'chrome://favicon/' + item.url;
   -1    11 		} else {
   -1    12 			var rootUrl = item.url.split('/').slice(0, 3).join('/');
   -1    13 			icon.src = rootUrl + '/favicon.ico';
   -1    14 		}
    9    15 
   10    16 		var a = document.createElement('a');
   11    17 		a.id = item.id;