From b91995af595b8ffe1b87964dc6080efb761671e6 Mon Sep 17 00:00:00 2001 From: janus_wel Date: Tue, 7 Oct 2008 14:40:51 +0000 Subject: 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 --- nicontroller.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'nicontroller.js') 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 - * @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( -- cgit v1.2.3