aboutsummaryrefslogtreecommitdiffstats
path: root/nicontroller.js
diff options
context:
space:
mode:
authorjanus_wel2008-10-07 14:40:51 +0000
committerjanus_wel2008-10-07 14:40:51 +0000
commitb91995af595b8ffe1b87964dc6080efb761671e6 (patch)
tree0682ec557ef93756b4310400f525dad03beb02f2 /nicontroller.js
parent8bf630de4882e8ac26b008b0a5baed2601752558 (diff)
downloadvimperator-plugins-b91995af595b8ffe1b87964dc6080efb761671e6.tar.bz2
add "bang" property to extra object when addUserCommand (matanico.js, nicontroller.js)
change https on post message (matanico.js) correct URL for pathtraq in function canonicalizeURL (reading.js) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@20930 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'nicontroller.js')
-rw-r--r--nicontroller.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/nicontroller.js b/nicontroller.js
index 29adea9..a519c0c 100644
--- a/nicontroller.js
+++ b/nicontroller.js
@@ -4,7 +4,7 @@
* @description this script give you keyboard opration for nicovideo.jp.
* @description-ja ニコニコ動画のプレーヤーをキーボードで操作できるようにする。
* @author janus_wel <janus_wel@fb3.so-net.ne.jp>
- * @version 0.51
+ * @version 0.52
* @minversion 1.2
* ==VimperatorPlugin==
*
@@ -66,6 +66,8 @@
* - use Error object when throw exception.
* - extract constant variables from code
* and define in NicoPlayerController.constants.
+ * 2008/10/08 ver. 0.52 - correspond vimperator specification
+ * "bang" in extra object on addUserCommand.
* */
/*
@@ -473,7 +475,9 @@ liberator.commands.addUserCommand(
try { special ? controller.seekBy(arg) : controller.seekTo(arg); }
catch(e) { liberator.echoerr(e); }
},
- {}
+ {
+ bang: true,
+ }
);
liberator.commands.addUserCommand(
@@ -483,7 +487,9 @@ liberator.commands.addUserCommand(
try { special ? controller.volumeBy(arg) : controller.volumeTo(arg); }
catch(e) { liberator.echoerr(e); }
},
- {}
+ {
+ bang: true,
+ }
);
liberator.commands.addUserCommand(