aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrry2009-04-29 13:40:23 +0000
committerthinca2010-10-23 04:38:11 +0900
commit77c8de86eaa2104dea1d9c9f10ae8ed0d9ac8c02 (patch)
tree197406fb421ffe92c5bac53bf857f2331ec2c177
parent137620159e4b9b893cfd16eaf8a99801a004087d (diff)
downloadvimperator-plugins-2.0.tar.bz2
* oops. [32720]2.0
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/branches/2.0@32949 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--twitter.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/twitter.js b/twitter.js
index a27393b..617edf0 100644
--- a/twitter.js
+++ b/twitter.js
@@ -64,7 +64,6 @@
xhr.open("GET", "https://twitter.com/statuses/user_timeline/" + user + ".json?count=1", false, username, password);
xhr.send(null);
xhr.open("POST", "https://twitter.com/favourings/create/" + window.eval(xhr.responseText)[0].id + ".json", false, username, password);
- xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(null);
}
function unfavTwitter(username, password, user){
@@ -72,7 +71,6 @@
xhr.open("GET", "https://twitter.com/statuses/user_timeline/" + user + ".json?count=1", false, username, password);
xhr.send(null);
xhr.open("DELETE", "https://twitter.com/favourings/destroy/" + window.eval(xhr.responseText)[0].id + ".json", false, username, password);
- xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send(null);
}
function showTwitterMentions(username, password){
@@ -98,7 +96,6 @@
sprintf(': <span class="twitter entry-content">%s&#x202C;</span>', status.text))
.join("<br/>");
- //liberator.log(html);
liberator.echo(html, true);
}
function showFollowersStatus(username, password, target){
@@ -106,8 +103,6 @@
var endPoint = target ? "https://twitter.com/statuses/user_timeline/" + target + ".json"
: "https://twitter.com/statuses/friends_timeline.json";
xhr.open("GET", endPoint, false, username, password);
- // for debug
- //xhr.open("GET", "https://twitter.com/statuses/user_timeline/otsune.json", false, username, password);
xhr.send(null);
var statuses = evalFunc(xhr.responseText) || [];
@@ -128,7 +123,6 @@
.replace(/(?:\r\n|[\r\n])[ \t]*/g, " "))
.join("<br/>");
- //liberator.log(html);
liberator.echo(html, true);
}
function showTwitterSearchResult(word){
@@ -154,7 +148,6 @@
.replace(/(?:\r\n|[\r\n])[ \t]*/g, " "))
.join("<br/>");
- //liberator.log(html);
liberator.echo(html, true);
}
liberator.modules.commands.addUserCommand(["twitter"], "Change Twitter status",