matanico

Description
update Twitter status to current video/search page information and comment.今見ている動画 / 検索結果の情報を Twitter に投稿する。
Latest version
0.74
Author
janus_wel
License
New BSD License

for 2.2
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/branches/2.2/matanico.js
for 2.1
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/branches/2.1/matanico.js
for 2.0
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/branches/2.0/matanico.js
for 1.2
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/branches/1.2/matanico.js
for Nightly
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/matanico.js

EX-COMMANDS

:matanico [comment]
This command posts the information of current video/search result to Twitter. "comment" is optional.
:matanico! [comment]
This command copies string that be posted to Twitter, to clipboard. This is emulate command.

SETTINGS

matanico_watch_format
This is the format that be used on video page. Following special tokens are available. default setting is "$SERVICENAME : $SUBJECT($PLAYTIME) - $URL $COMMENT".
$SERVICENAME: the value of "matanico_watch_servicename".
$SUBJECT: video name.
$PLAYTIME: video duration.
$URL: video URL.
$COMMENT: comment. if this token is not specified, ex-command ":matanico" ignore any comments.
matanico_watch_servicename
the token "$SERVICENAME" specified by "matanico_watch_format" will be expanded to this value. this variable facilitate to change posted string without modefication of format. default value is "またニコニコ動画見てる".
matanico_live_format
This is the format that be used on live page. Following special tokens are available. default setting is "$SERVICENAME : $SUBJECT - $URL $COMMENT".
$SERVICENAME: matanico_live_servicename で指定した文字列に展開されます。
$SUBJECT: live name.
$URL: live URL.
$COMMENT: comment. if this token is not specified, ex-command ":matanico" ignore any comments.
matanico_live_servicename
the token "$SERVICENAME" specified by "matanico_live_format" will be expanded to this value. this variable facilitate to change posted string without modefication of format. default value is "またニコニコ生放送見てる".
matanico_tag_format
This is the format that be used on tag search page. Following special tokens are available. default setting is "$SERVICENAME : $TAG($NUMOFVIDEOS件) - $URL $COMMENT".
$SERVICENAME: the value of "matanico_tag_servicename".
$TAG: search tags. that will be separated by a space, when specified multiple tags.
$NUMOFVIDEOS: the number of search result.
$URL: search result URL.
$COMMENT: comment. if this token is not specified, ex-command ":matanico" ignore any comments.
matanico_tag_servicename
the token "$SERVICENAME" specified by "matanico_tag_format" will be expanded to this value. this variable facilitate to change posted string without modefication of format. default value is "またニコニコタグ検索してる".
matanico_related_tag_format
This is the format that be used on tag search by keyword page. Following special tokens are available. default setting is "$SERVICENAME : $KEYWORD($NUMOFTAGS件) - $URL $COMMENT".
$SERVICENAME: the value of "matanico_related_tag_servicename".
$KEYWORD: search keyword.
$NUMOFVIDEOS: the number of search result.
$URL: search result URL.
$COMMENT: comment. if this token is not specified, ex-command ":matanico" ignore any comments.
matanico_related_tag_servicename
the token "$SERVICENAME" specified by "matanico_related_tag_format" will be expanded to this value. this variable facilitate to change posted string without modefication of format. default value is "またキーワードでニコニコタグ検索してる".

EX-COMMANDS

:matanico [comment]
今見ている動画 / 検索した結果の情報を Twitter に投稿します。 comment はなくてもかまいません。
:matanico! [comment]
Twitter に投稿される文字列をクリップボードにコピーします。 Twitter には投稿しません。

SETTINGS

matanico_watch_format
動画ページにおいて投稿される文章の書式設定です。以下の特殊な文字列を指定可能です。設定なしの場合 "$SERVICENAME : $SUBJECT($PLAYTIME) - $URL $COMMENT" になります。
$SERVICENAME: matanico_watch_servicename で指定した文字列に展開されます。
$SUBJECT: 動画の名前に展開されます。
$PLAYTIME: 再生時間に展開されます。
$URL: 動画の URL に展開されます。
$COMMENT: コメントに展開されます。この指定がないと :matanico コマンドでコメントを書いても反映されません。
matanico_watch_servicename
matanico_watch_format で指定した $SERVICENAME 部分がこの値で展開されます。書式はそのままで投稿する文字列のみを変更したい場合にこの値を変更することで設定が容易になります。設定なしの場合 "またニコニコ動画見てる" が使用されます。
matanico_live_format
生放送ページにおいて投稿される文章の書式設定です。以下の特殊な文字列を指定可能です。設定なしの場合 "$SERVICENAME : $SUBJECT - $URL $COMMENT" になります。
$SERVICENAME: matanico_live_servicename で指定した文字列に展開されます。
$SUBJECT: 動画の名前に展開されます。
$URL: 動画の URL に展開されます。
$COMMENT: コメントに展開されます。この指定がないと :matanico コマンドでコメントを書いても反映されません。
matanico_live_servicename
matanico_live_format で指定した $SERVICENAME 部分がこの値で展開されます。書式はそのままで投稿する文字列のみを変更したい場合にこの値を変更することで設定が容易になります。設定なしの場合 "またニコニコ生放送見てる" が使用されます。
matanico_tag_format
タグ検索ページにおいて投稿される文章の書式設定です。以下の特殊な文字列を指定可能です。設定なしの場合 "$SERVICENAME : $TAG($NUMOFVIDEOS件) - $URL $COMMENT" が使用されます。
$SERVICENAME: matanico_tag_servicename で指定した文字列に展開されます。
$TAG: 検索したタグ名に展開されます。複数指定の場合、半角スペースで区切られます。
$NUMOFVIDEOS: 検索結果の件数に展開されます。
$URL: 検索結果の URL に展開されます。
$COMMENT: コメント展開されます。この指定がないと :matnico コマンドでコメントを書いても反映されません。
matanico_tag_servicename
matanico_tag_format で指定した $SERVICENAME 部分がこの値で展開されます。書式はそのままで投稿する文字列のみを変更したい場合にこの値を変更することで設定が容易になります。設定なしの場合 "またニコニコタグ検索してる" が使用されます。
matanico_related_tag_format
キーワードによるタグ検索ページにおいて投稿される文章の書式設定です。以下の特殊な文字列を指定可能です。設定なしの場合 "$SERVICENAME : $KEYWORD($NUMOFTAGS件) - $URL $COMMENT" が使用されます。
$SERVICENAME: matanico_related_tag_servicename で指定した文字列に展開されます。。
$KEYWORD: 検索したキーワードに展開されます。
$NUMOFVIDEOS: 検索結果の件数に展開されます。
$URL: 検索結果の URL に展開されます。
$COMMENT: コメント展開されます。この指定がないと :matnico コマンドでコメントを書いても反映されません。
matanico_related_tag_servicename
matanico_related_tag_format で指定した $SERVICENAME 部分がこの値で展開されます。書式はそのままで投稿する文字列のみを変更したい場合にこの値を変更することで設定が容易になります。設定なしの場合 "またキーワードでニコニコタグ検索してる" が使用されます。
back to index