diff options
author | anekos | 2011-01-09 01:39:30 +0900 |
---|---|---|
committer | anekos | 2011-01-09 01:40:18 +0900 |
commit | b55529808894ee0c5d0193e9b16581d9fd0d33e0 (patch) | |
tree | ed90ffcc5c1d9ae0105a52825acbd3c1efa33897 /foxage2ch.js | |
parent | 091b4a510a01ebb6db11e1a1c1eef8acbb7c38e5 (diff) | |
download | vimperator-plugins-b55529808894ee0c5d0193e9b16581d9fd0d33e0.tar.bz2 |
addthread サブコマンド追加
Diffstat (limited to 'foxage2ch.js')
-rw-r--r-- | foxage2ch.js | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/foxage2ch.js b/foxage2ch.js index 7ed240f..2ae07c8 100644 --- a/foxage2ch.js +++ b/foxage2ch.js @@ -37,7 +37,7 @@ let PLUGIN_INFO = <VimperatorPlugin> <name>FoxAge2ch</name> <description>for FoxAge2ch</description> - <version>1.0.3</version> + <version>1.1.0</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -55,7 +55,7 @@ let PLUGIN_INFO = // INFO {{{ let INFO = <> - <plugin name="FoxAge2ch" version="1.0.3" + <plugin name="FoxAge2ch" version="1.1.0" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/foxage2ch.js" summary="for FoxAge2ch addon" lang="en-US" @@ -74,7 +74,7 @@ let INFO = </description> </item> </plugin> - <plugin name="FoxAge2ch" version="1.0.3" + <plugin name="FoxAge2ch" version="1.1.0" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/foxage2ch.js" summary="FoxAge2ch アドオン用" lang="ja" @@ -212,6 +212,26 @@ let INFO = true ); + SubCommands.addUserCommand( + ['a[ddthread]'], + 'Add a threadii', + function (args) { + let url = FoxAge2chUtils.unwrapURL(args.literalArg || buffer.URL); + let addedItem = svc.addFavorite(url); + if (addedItem) + liberator.echo('Added: ' + url); + }, + { + literal: 0, + completer: function (context, args) { + context.completions = [ + [FoxAge2chUtils.unwrapURL(buffer.URL), 'Current Buffer'] + ]; + } + }, + true + ); + let mainCommand = commands.addUserCommand( 'foxage', |