aboutsummaryrefslogtreecommitdiffstats
path: root/nicovideo_comment.js
diff options
context:
space:
mode:
authorotsune2008-07-02 14:19:48 +0000
committerotsune2008-07-02 14:19:48 +0000
commitd37d85c5bd63de221909804b6353e3f2acc252cf (patch)
tree59b9a40f720ea683617a27f167d74649e556fcc4 /nicovideo_comment.js
parent3b5014ccee38898bce7343f0825aba6bab0a6384 (diff)
downloadvimperator-plugins-d37d85c5bd63de221909804b6353e3f2acc252cf.tar.bz2
* 'flvplayer' move scope
* remove toLower git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@15057 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'nicovideo_comment.js')
-rw-r--r--nicovideo_comment.js6
1 files 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);
}
});