ãã³ãã³åç»ã®ãã¬ã¼ã¤ã¼ããã¼ãã¼ãã§æä½ãã vimperator script
NicoNicoPlaylist ããã¼ãã¼ãã§æä½ã§ããããã«ãªã£ã ( http://d.hatena.ne.jp/janus_wel/20080711#1216145320 ) ã®ã§ä»åº¦ã¯ãã¬ã¼ã¤ã¼ãæä½ ( ä¸æåæ¢ã»ã·ã¼ã¯ã»ã³ã¡ã³ã etc ) ããã¨ãã«ãã©ã¼ã«ã¹ãåããã¦ãã¾ãã®ããã©ãããã¦ä½ã¨ããªããªããã¨æã£ã¦ãããã試ãã¦ã¿ãçµæãªããåºæ¥ã¦ãã¾ã£ãã
http://www012.upp.so-net.ne.jp/legio/distribute/nicontroller.js
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/nicontroller.js
使ãæ¹
~/vimperator/plugin 以ä¸ã«ã¤ã£ãã㧠Fx åèµ·åã以ä¸ã®ã³ãã³ãã使ããããã«ãªã£ã¦ãã¯ãã
- :nicoinfo
- ãã¬ã¼ã¤ã¼ã«é¢ãã¦ã®æ å ±ã表示ãããä»ã®ã¨ãããã¼ã¸ã§ã³ã ãã
- :nicopause
- åç / ä¸æåæ¢ãåãæ¿ããã
- :nicomute
- é³å£°ãã / ãªããåãæ¿ããã
- :nicommentvisible
- ã³ã¡ã³ã表示 / é表示ãåãæ¿ããã
- :nicorepeat
- ãªãã¼ãåçãããã©ãããåãæ¿ããã
- :nicosize
- æ大å / ãã¼ãã«ãåãæ¿ããã
- :nicoseek [position]
- æå®ããå ´æã«ã·ã¼ã¯ãããç§æ°ã§æå®ãå¯è½ãæå®ãªãã®å ´åä¸çªæåã«ã·ã¼ã¯ããã
- :nicoseek! delta
- ç¾å¨ã®ä½ç½®ãã delta ç§é¢ããæã«ã·ã¼ã¯ãããç§æ°ã§æå®ãå¯è½ããã¤ãã¹ãæå®ããã¨æ»ããæå®ãªãã®å ´åå¤åããªãã
- :nicovolume [volume]
- ããªã¥ã¼ã ãè¨å®ããã 0 ã 100 ãæå®ã§ãããæå®ãªãã®å ´å 100 ã«ã»ããããã
- :nicovolume! delta
- ããªã¥ã¼ã ãç¾å¨ã®å¤ããå¤æ´ããã -100 ã +100 ãæå®å¯è½ãæå®ãªãã®å ´åå¤åããªãã
- :nicomment comment
- ã³ã¡ã³ãæ¬ãæå®ããæååã§åããã
- :nicommand command
- ã³ãã³ãæ¬ãæå®ããæååã§åããã使ããã³ãã³ãã®è£å®æ©è½ã¤ãã
:nicomment 㨠:nicommand ã¯ã³ãã³ãæ¬ãåããã ãã§æ稿ãã¾ããã注æãããã¦ãã®äºã¤ã¯ g:subtech:id:otsune ã® nicovideo_comment.js ( http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/nicovideo_comment.js ) ããã®ãã¯ãªã§ããã¾ã¨ãã¡ãã£ããããã
以ä¸ã¯æä¾ã® map ä¾ãæ£ç´ Fx3 ã® - / + ã®ãã¼ã¸æ¡ç¸®ã bell ã¨ã¨ãã«æ´çºããã®ãã¦ã¶ãã£ãã®ã§ããã«å²ãå½ã¦ã¦ãã¾ã£ãã
map ,ni :nicoinfo map ,np :nicopause map ,nm :nicomute map ,nv :nicommentvisible map ,nz :nicosize map ,ns :nicoseek
javascript <<EOM // [N]- // N ç§åã«ã·ã¼ã¯ããã // æå®ãªãã®å ´å 10 ç§åã liberator.mappings.addUserMap( [liberator.modes.NORMAL], ['-'], 'seek by count backward', function(count) { if(count === -1) count = 10; liberator.execute(':nicoseek! ' + '-' + count); }, { flags: liberator.Mappings.flags.COUNT } ); // [N]+ // N ç§å¾ã«ã·ã¼ã¯ããã // æå®ãªãã®å ´å 10 ç§å¾ã liberator.mappings.addUserMap( [liberator.modes.NORMAL], ['+'], 'seek by count forward', function(count) { if(count === -1) count = 10; liberator.execute(':nicoseek! ' + count); }, { flags: liberator.Mappings.flags.COUNT } ); EOM
ä¸è¨ã®è¨å®ãããã㨠http://www.nicovideo.jp/watch/sm3966413 ãè¦ãã¨æãªããæåãããé ä½ãã¨ã«ãã¼ãã¬ã¼ã ãå²ã£ã¦ãã親ååç»ãªã®ã§ + ãæ¼ãã ãã§æ¬¡ã®é ä½ã¸ãã£ã¦ãããããã¨å°å³ã«ä¾¿å©ãªã®ã :nicopause, :nicommentvisible, :nicosize ã® 3 ã¤ãåç»å
ã®æåã®æµããéãã¨ãã« :nicopause ã§æ¢ããªããè¦ããã³ã¡ã³ããå¤ããã¦åç»ãè¦ããªãã¨ãã« :nicommentvisible ã§é ããããããããã®æ°ä½ã :nicosize ã§æ大åãã¦ã¿ããã¨ä½¿ããå ´æãå¤ãããã¨å人çã«ã¤ã¤ãã³ä½¿ç¨æã« :nicovolume 50 ãã¦é³é調ç¯ãããéä¸ã§ãããããåç»ã ã¨ãããã¨ã«æ°ã¥ãã¦æåããè¦ç´ãã®ã« :nicoseek ã使ã£ãããã¦ããã
æè¡çãªã¯ãªã
ã½ã¼ã¹è¦ãã¨ãããã¨æãã¾ãã NicoPlayerController ã¯ã©ã¹ãã¡ã¤ã³ã§ããã³ãã³ãå®ç¾©ã¯ããã¤å¼ã³åºãã¦ãã ãã§ããã§ããã®ã¯ã©ã¹ã«ã¯ vimperator ç¹æã®ã³ã¼ãã¯å ¥ã£ã¦ãªãã®ã§ vimperator å ¥ãã¦ãªãæ¹ã¯èªå Greasemonkey script 㧠window.addEventListener('keydown', function() { /* processing */ } , true); ããã°ãã¶ãåãã¨æãã¾ã ( /* processing */ é¨åã¯èªåã§èãã¦ã !! ) ã
ã§ãã©ããã£ã¦ããæ¸ãããã ã£ã¦ããã·ã§ãããã¼ã¨ã»ããã®ã¢ã¬ã§ããã¢ã¬ã以ä¸ã§å¯ãã
- http://twitter.com/janus_wel/statuses/858918611
- http://twitter.com/koizuka/statuses/858922137
é¢é£ãã¦ãã³ã¡ã³ãæ稿ãã§ããªãã®ã¯ nicoplayer.swf å´ã«ãã®ããã®å¤é¨ã¤ã³ã¿ã¼ãã§ã¤ã¹ããªããããªãã§ãããã¨ããããã§æ ¹æ¬çã«ãã¡ãªã®ã§è«¦ãæ°å³ã