diff options
author | mattn | 2008-08-05 11:36:36 +0000 |
---|---|---|
committer | mattn | 2008-08-05 11:36:36 +0000 |
commit | 36acd109d5ceb39776d9c09636fb50d821672645 (patch) | |
tree | afd030a365d03498f889d15eae8d8eb17fd2858d | |
parent | aac90a4418d6b4a3776ea24a0322802dcfe2d302 (diff) | |
download | vimperator-plugins-36acd109d5ceb39776d9c09636fb50d821672645.tar.bz2 |
タブとかタブとかタブとか改行を修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@17113 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | mixiecho.js | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/mixiecho.js b/mixiecho.js index 2854b15..0ad259c 100644 --- a/mixiecho.js +++ b/mixiecho.js @@ -6,7 +6,7 @@ (function(){
var ucnv = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"]
.createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
- ucnv.charset = "EUC-JP";
+ ucnv.charset = "EUC-JP";
function sprintf(format){
var i = 1, re = /%s/, result = "" + format;
while (re.test(result) && i < arguments.length) result = result.replace(re, arguments[i++]);
@@ -52,7 +52,7 @@ XPathResult.FIRST_ORDERED_NODE_TYPE, null);
return result.singleNodeValue ? result.singleNodeValue : null;
}
- function showFollowersStatus(){
+ function showFollowersStatus(){
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://mixi.jp/recent_echo.pl", false);
xhr.send(null);
@@ -77,7 +77,6 @@ text : text
});
});
-
var html = <style type="text/css"><![CDATA[
span.twitter.entry-content a { text-decoration: none; }
img.twitter.photo { border; 0px; width: 16px; height: 16px; vertical-align: baseline; }
@@ -94,7 +93,6 @@ .replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="twitter entry-content">%s‬</span>', status.text))
.join("<br/>");
-
//liberator.log(html);
liberator.echo(html, true);
}
@@ -102,7 +100,6 @@ var xhr = new XMLHttpRequest();
xhr.open("GET", "http://mixi.jp/recent_echo.pl", false);
xhr.send(null);
-
var form = getFirstElementByXPath('//form[@action="add_echo.pl"]', parseHTML(xhr.responseText, ['script']));
var input = getFirstElementByXPath('.//textarea', form);
input.value = text;
@@ -113,12 +110,12 @@ xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(params.join('&'));
}
- liberator.commands.addUserCommand(["mixiecho"], "Change mixi echo",
- function(arg, special){
- if (special || arg.length == 0)
- showFollowersStatus()
- else
- sayEcho(arg);
- },
- { });
+ liberator.commands.addUserCommand(["mixiecho"], "Change mixi echo",
+ function(arg, special){
+ if (special || arg.length == 0)
+ showFollowersStatus()
+ else
+ sayEcho(arg);
+ },
+ { });
})();
|