From daa06a8c1aea5902c9c79c7f6d3f9bd0e805700a Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 6 Feb 2011 23:27:40 +0900 Subject: サブコマンド増やした --- foxage2ch.js | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'foxage2ch.js') diff --git a/foxage2ch.js b/foxage2ch.js index 49c7ccb..1c5cc63 100644 --- a/foxage2ch.js +++ b/foxage2ch.js @@ -37,7 +37,7 @@ let PLUGIN_INFO = FoxAge2ch for FoxAge2ch - 1.2.0 + 1.3.0 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -146,12 +146,6 @@ let INFO = return; }, findThread: function (threadId) { - if (!threadId) { - let thread = FA.titleToId(buffer.title); - if (!thread) - return; - threadId = thread.id; - } window.openDialog( 'chrome://foxage2ch/content/findThread.xul', 'FoxAge2ch:FindThread', @@ -235,6 +229,26 @@ let INFO = } }, true + ), + + new Command( + ['f[indthread]'], + 'Find thread', + function (args) { + let threadId = args.literalArg; + if (!threadId) { + let thread = FA.titleToId(buffer.title); + if (!thread) + return; + threadId = thread.id; + } + FA.findThread(threadId); + }, + { + literal: 0, + completer: threadCompleter + }, + true ) ]; -- cgit v1.2.3