From 7347cb12756ea01c5dcbef0f0d7e373909032b8e Mon Sep 17 00:00:00 2001 From: janus_wel Date: Fri, 26 Sep 2008 06:02:21 +0000 Subject: correspond mode toggling (fullscreen, random, loop). change caption: display now-playing title and mode's statuses. mode's statuses are displayed with the following word. R: random mode is on L: loop mode is on F: fullscreen mode is on git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@19949 d0d07461-0603-4401-acd4-de1884942a52 --- nnp_cooperation.js | 78 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 27 deletions(-) (limited to 'nnp_cooperation.js') diff --git a/nnp_cooperation.js b/nnp_cooperation.js index e615a5b..918cd7c 100644 --- a/nnp_cooperation.js +++ b/nnp_cooperation.js @@ -2,53 +2,65 @@ * ==VimperatorPlugin== * @name niconicoplaylist_cooperation.js * @description this script give you keyboard opration for NicoNicoPlaylist. - * @description-ja NicoNicoPlaylist をキーボードで操作できるようにする。 + * @description-ja NicoNicoPlaylist 繧偵く繝シ繝懊シ繝峨〒謫堺ス懊〒縺阪k繧医≧縺ォ縺吶k縲 * @author janus_wel * @version 0.30 * @minversion 1.2 * ==VimperatorPlugin== * * CONSTRAINT - * need NicoNicoPlaylist version 1.11 or above + * need NicoNicoPlaylist version 1.12 or above * * LICENSE * New BSD License * * USAGE * :nnppushallvideos - * 現在のページ内のすべての動画を再生リストに送る。 - * ランキングやマイリストのほか、動画ページではオススメ動画が追加される。 + * 迴セ蝨ィ縺ョ繝壹シ繧ク蜀縺ョ縺吶∋縺ヲ縺ョ蜍慕判繧貞咲函繝ェ繧ケ繝医↓騾√k縲 + * 繝ゥ繝ウ繧ュ繝ウ繧ー繧繝槭う繝ェ繧ケ繝医ョ縺サ縺九∝虚逕サ繝壹シ繧ク縺ァ縺ッ繧ェ繧ケ繧ケ繝。蜍慕判縺瑚ソス蜉縺輔l繧九 * :nnppushthisvideo - * 現在見ている動画を再生リストに送る。 + * 迴セ蝨ィ隕九※縺繧句虚逕サ繧貞咲函繝ェ繧ケ繝医↓騾√k縲 * :nnpplaynext [next] - * 再生リストの次の動画を再生する。 + * 蜀咲函繝ェ繧ケ繝医ョ谺。縺ョ蜍慕判繧貞咲函縺吶k縲 * :nnpremove [index] - * index 番目の動画を再生リストから取り除く。 index は 0 から数える。 - * 指定しない場合は一番上が取り除かれる。 + * index 逡ェ逶ョ縺ョ蜍慕判繧貞咲函繝ェ繧ケ繝医°繧牙叙繧企勁縺上 index 縺ッ 0 縺九i謨ー縺医k縲 + * 謖螳壹@縺ェ縺蝣エ蜷医ッ荳逡ェ荳翫′蜿悶j髯、縺九l繧九 * :nnpclear - * 再生リストをすべてクリアする。 + * 蜀咲函繝ェ繧ケ繝医r縺吶∋縺ヲ繧ッ繝ェ繧「縺吶k縲 * :nnpgetlist [numof] - * 再生リストの上から numof 個を表示する。指定しない場合は g:nnp_coop_numoflist が使われる。 + * 蜀咲函繝ェ繧ケ繝医ョ荳翫°繧 numof 蛟九r陦ィ遉コ縺吶k縲よ欠螳壹@縺ェ縺蝣エ蜷医ッ g:nnp_coop_numoflist 縺御スソ繧上l繧九 + * :nnprandom + * 繝ゥ繝ウ繝繝繝「繝シ繝峨ョ on / off + * :nnploop + * 繝ォ繝シ繝励Δ繝シ繝峨ョ on / off + * :nnpfullscreen + * 蜈ィ逕サ髱「繝「繝シ繝峨ョ on / off * * VARIABLES * g:nnp_coop_numoflist - * :NNPGetList で表示するリストの個数を指定する。デフォルトは 10 。 + * :NNPGetList 縺ァ陦ィ遉コ縺吶k繝ェ繧ケ繝医ョ蛟区焚繧呈欠螳壹☆繧九ゅョ繝輔か繝ォ繝医ッ 10 縲 * * HISTORY * 2008/07/11 ver. 0.1 initial written. * 2008/07/15 ver. 0.2 refactoring. - * 2008/09/25 ver. 0.3 change XPath expression. + * 2008/09/26 ver. 0.3 change XPath expression. + * correspond mode toggling (fullscreen, random, loop). + * change caption: display now-playing title and mode's statuses. + * mode's statuses are displayed with the following word. + * R: random mode is on + * L: loop mode is on + * F: fullscreen mode is on * * */ /* -以下のコードを _vimperatorrc に貼り付けると幸せになれるかも。 -コマンド ( [',nn'] や [',nr'] の部分 ) は適宜変えてね。 +莉・荳九ョ繧ウ繝シ繝峨r _vimperatorrc 縺ォ雋シ繧贋サ倥¢繧九→蟷ク縺帙↓縺ェ繧後k縺九b縲 +繧ウ繝槭Φ繝 ( [',nn'] 繧 [',nr'] 縺ョ驛ィ蛻 ) 縺ッ驕ゥ螳懷、峨∴縺ヲ縺ュ縲 javascript <', + '