Changeset 15057
- Timestamp:
- 07/02/08 23:19:48 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/nicovideo_comment.js
r11318 r15057 14 14 */ 15 15 (function(){ 16 var flvp = window.content.wrappedJSObject.document.getElementById('flvplayer');17 16 18 17 liberator.commands.addUserCommand(['nico'],'Fill comment form in nicovideo', 19 18 function(arg, special){ 19 var flvp = window.content.wrappedJSObject.document.getElementById('flvplayer'); 20 20 var form = special ? 'inputArea.MailInput.text' : 'inputArea.ChatInput1.text' ; 21 21 flvp.SetVariable(form, arg.toString() ); … … 54 54 if (special){ 55 55 commands.forEach(function(command){ 56 if (command[0]. toLowerCase().indexOf(filter.toLowerCase())== 0){56 if (command[0].indexOf(filter.toLowerCase()) === 0){ 57 57 templates.push(command); 58 58 } … … 61 61 if (special && !(flvp.GetVariable('premiumNo')) ){ 62 62 premiumcommands.forEach(function(premiumcommand){ 63 if (premiumcommand[0]. toLowerCase().indexOf(filter.toLowerCase())== 0){63 if (premiumcommand[0].indexOf(filter.toLowerCase()) === 0){ 64 64 templates.push(premiumcommand); 65 65 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)