Explorar el Código

commentout echo-closed-tabs

pull/1/head
10sr hace 12 años
padre
commit
87a3c3aedc
Se han modificado 1 ficheros con 10 adiciones y 10 borrados
  1. +10
    -10
      _keysnail.js

+ 10
- 10
_keysnail.js Ver fichero

@@ -435,16 +435,16 @@ ext.add("list-closed-tabs", function () {
});
}, "List closed tabs");

ext.add("echo-closed-tabs", function () {
var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
var json = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON);
// var closedTabs = [[tab.image || fav, tab.title, tab.url] for each (tab in json.decode(ss.getClosedTabData(window)))];
var lasttab = json.decode(ss.getClosedTabData(window))[0];
dump = ""
for (var i in lasttab) { dump += lasttab[i] + "\n"; }
confirm(dump);
}, "List closed tabs");
// ext.add("echo-closed-tabs", function () {
// var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
// var json = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON);
// // var closedTabs = [[tab.image || fav, tab.title, tab.url] for each (tab in json.decode(ss.getClosedTabData(window)))];
// var lasttab = json.decode(ss.getClosedTabData(window))[0];
// dump = ""
// for (var i in lasttab) { dump += lasttab[i] + "\n"; }
// confirm(dump);
// }, "List closed tabs");

///////////////////////////////
// http://malblue.tumblr.com/post/349001250/tips-japanese-keysnail-github


Cargando…
Cancelar
Guardar