From d37d85c5bd63de221909804b6353e3f2acc252cf Mon Sep 17 00:00:00 2001 From: otsune Date: Wed, 2 Jul 2008 14:19:48 +0000 Subject: * 'flvplayer' move scope * remove toLower git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@15057 d0d07461-0603-4401-acd4-de1884942a52 --- nicovideo_comment.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nicovideo_comment.js b/nicovideo_comment.js index ed35252..5003f57 100644 --- a/nicovideo_comment.js +++ b/nicovideo_comment.js @@ -13,10 +13,10 @@ * :nico! {String} -> Fill mail form */ (function(){ -var flvp = window.content.wrappedJSObject.document.getElementById('flvplayer'); liberator.commands.addUserCommand(['nico'],'Fill comment form in nicovideo', function(arg, special){ + var flvp = window.content.wrappedJSObject.document.getElementById('flvplayer'); var form = special ? 'inputArea.MailInput.text' : 'inputArea.ChatInput1.text' ; flvp.SetVariable(form, arg.toString() ); },{ @@ -53,14 +53,14 @@ liberator.commands.addUserCommand(['nico'],'Fill comment form in nicovideo', ]; if (special){ commands.forEach(function(command){ - if (command[0].toLowerCase().indexOf(filter.toLowerCase()) == 0){ + if (command[0].indexOf(filter.toLowerCase()) === 0){ templates.push(command); } }); } if (special && !(flvp.GetVariable('premiumNo')) ){ premiumcommands.forEach(function(premiumcommand){ - if (premiumcommand[0].toLowerCase().indexOf(filter.toLowerCase()) == 0){ + if (premiumcommand[0].indexOf(filter.toLowerCase()) === 0){ templates.push(premiumcommand); } }); -- cgit v1.2.3