Show
Ignore:
Timestamp:
08/05/08 20:36:36 (4 months ago)
Author:
mattn
Message:

タブとかタブとかタブとか改行を修正

Files:
1 modified

Legend:

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

    r17112 r17113  
    77        var ucnv = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"] 
    88                .createInstance(Components.interfaces.nsIScriptableUnicodeConverter); 
    9     ucnv.charset = "EUC-JP"; 
     9        ucnv.charset = "EUC-JP"; 
    1010        function sprintf(format){ 
    1111                var i = 1, re = /%s/, result = "" + format; 
     
    5353                return result.singleNodeValue ? result.singleNodeValue : null; 
    5454        } 
    55     function showFollowersStatus(){ 
     55        function showFollowersStatus(){ 
    5656                var xhr = new XMLHttpRequest(); 
    5757                xhr.open("GET", "http://mixi.jp/recent_echo.pl", false); 
     
    7878                        }); 
    7979                }); 
    80  
    8180                var html = <style type="text/css"><![CDATA[ 
    8281                        span.twitter.entry-content a { text-decoration: none; } 
     
    9594                                        sprintf(': <span class="twitter entry-content">%s&#x202C;</span>', status.text)) 
    9695                                                .join("<br/>"); 
    97  
    9896                //liberator.log(html); 
    9997                liberator.echo(html, true); 
     
    103101                xhr.open("GET", "http://mixi.jp/recent_echo.pl", false); 
    104102                xhr.send(null); 
    105  
    106103                var form = getFirstElementByXPath('//form[@action="add_echo.pl"]', parseHTML(xhr.responseText, ['script'])); 
    107104                var input = getFirstElementByXPath('.//textarea', form); 
     
    114111                xhr.send(params.join('&')); 
    115112        } 
    116     liberator.commands.addUserCommand(["mixiecho"], "Change mixi echo", 
    117         function(arg, special){ 
    118             if (special || arg.length == 0) 
    119                 showFollowersStatus() 
    120             else 
    121                 sayEcho(arg); 
    122         }, 
    123     { }); 
     113        liberator.commands.addUserCommand(["mixiecho"], "Change mixi echo", 
     114                function(arg, special){ 
     115                        if (special || arg.length == 0) 
     116                                showFollowersStatus() 
     117                        else 
     118                                sayEcho(arg); 
     119                }, 
     120        { }); 
    124121})();