diff options
author | anekos | 2010-10-01 09:25:56 +0000 |
---|---|---|
committer | anekos | 2010-10-01 09:25:56 +0000 |
commit | 9c276479a5c8b6cb197bc0084a5d837e37004c51 (patch) | |
tree | 32867ac5a0d42bdc23f9392c35e8c40577819823 | |
parent | a8ab5223acfb4b456bdb93f69899ed0dc21ce157 (diff) | |
download | vimperator-plugins-9c276479a5c8b6cb197bc0084a5d837e37004c51.tar.bz2 |
要らなくなっていた子を削除
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38536 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | twittperator.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/twittperator.js b/twittperator.js index f2fb491..71a8630 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1317,16 +1317,6 @@ let PLUGIN_INFO = let lastParams; let listeners = []; - // 極めて適当につくってます。 - // ステータスに対してユニークな文字列を返せばよい - // XXX s.id でも良い? - function getStatusHash(s) { - let result = ''; - for (let [k, v] in Iterator(s)) - result += k + '\t' + (v && typeof v === 'object' ? getStatusHash(v) : v) + '\n'; - return result; - } - function restart() { stop(); if (restartCount > 13) @@ -1372,8 +1362,6 @@ let PLUGIN_INFO = try { if (/^\s*\{/(line)) onMsg(Utils.fixStatusObject(JSON.parse(line)), line); - else - liberator.log(name + ' : ' + line); } catch (e) { liberator.log(e); } } buf = lines.slice(-1)[0]; @@ -1914,6 +1902,16 @@ let PLUGIN_INFO = action: function(arg) liberator.open("http://twitter.com/" + arg, liberator.NEW_TAB), timelineCompleter: true, completer: Completers.screenName(rejectMine) + SubCommand({ + command: ["thread"], + description: "Show tweets thread.", + action: function(arg) { + function getStatus + let id = parseInt(arg); + }, + timelineCompleter: true, + completer: Completers.id() + }), }), ]; // }}} |