Pārlūkot izejas kodu

commentout echo-closed-tabs

pull/1/head
10sr pirms 12 gadiem
vecāks
revīzija
87a3c3aedc
1 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. +10
    -10
      _keysnail.js

+ 10
- 10
_keysnail.js Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt