Show
Ignore:
Timestamp:
09/06/08 01:31:27 (3 months ago)
Author:
drry
Message:
  • (whitespace changes)
Location:
lang/javascript/vimperator-plugins/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/twissr.js

    r16909 r18904  
    77    liberator.commands.addUserCommand(["twissr"], "Change Twitter & Wassr status", 
    88        function(arg, special){ 
    9                         arg = (special ? '! ' : ' ') + arg; 
    10                         liberator.execute('twitter' + arg); 
    11                         liberator.execute('wassr' + arg); 
     9            arg = (special ? '! ' : ' ') + arg; 
     10            liberator.execute('twitter' + arg); 
     11            liberator.execute('wassr' + arg); 
    1212        }, 
    1313    { }); 
  • lang/javascript/vimperator-plugins/trunk/ubiquityNeta.js

    r18664 r18904  
    1 // Vimperator plugin: ubiquity 
     1// Vimperator plugin: Ubiquity 
    22// Maintainer: mattn <mattn.jp@gmail.com> - http://mattn.kaoriya.net 
    33// Require: Ubiquity - https://wiki.mozilla.org/Labs/Ubiquity 
    44// Usage: 
    5 //   :ubiquity command...  - show ubiquity's command dialog. 
    6 //   :ubiquity! command... - run ubiquity's command. 
     5//   :ubiquity command...  - show Ubiquity's command dialog. 
     6//   :ubiquity! command... - run Ubiquity's command. 
    77 
    88(function() { 
    99        if (typeof gUbiquity === 'undefined') return; 
    10     liberator.commands.addUserCommand(["ubiquity"], "Ubiquity", 
    11         function(arg, special){ 
    12                         var anchor = document.getElementById("content"); 
    13                         if (window.location == "chrome://browser/content/browser.xul") 
    14                             anchor = anchor.selectedBrowser; 
    15                         gUbiquity.openWindow(anchor); 
    16                         gUbiquity.__textBox.value = arg||''; 
    17                         var context = gUbiquity.__makeContext(); 
    18                         var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview"); 
    19                         gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock); 
    20                         if (special) { 
    21                                 gUbiquity.__cmdManager.execute(context); 
    22                                 gUbiquity.closeWindow(); 
    23                         } 
    24                 }, 
    25     { }); 
     10        liberator.commands.addUserCommand(["ubiquity"], "Ubiquity", 
     11        function(arg, special){ 
     12                var anchor = document.getElementById("content"); 
     13                if (window.location == "chrome://browser/content/browser.xul") 
     14                        anchor = anchor.selectedBrowser; 
     15                gUbiquity.openWindow(anchor); 
     16                gUbiquity.__textBox.value = arg||''; 
     17                var context = gUbiquity.__makeContext(); 
     18                var previewBlock = document.getElementById("cmd-preview").contentDocument.getElementById("preview"); 
     19                gUbiquity.__cmdManager.updateInput(arg||'', context, previewBlock); 
     20                if (special) { 
     21                        gUbiquity.__cmdManager.execute(context); 
     22                        gUbiquity.closeWindow(); 
     23                } 
     24        }, 
     25        { }); 
    2626})();