aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
authordrry2009-04-29 13:40:23 +0000
committerdrry2009-04-29 13:40:23 +0000
commit3d012a061424199504407c651b5122523fc46a28 (patch)
tree6eaea80d71e730afde3a0c5e7e2ca9e877650e70 /twitter.js
parent0dbdd89ac16cba7ae96ebe763d14ef10ca5c660a (diff)
downloadvimperator-plugins-3d012a061424199504407c651b5122523fc46a28.tar.bz2
* oops. [32720]
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@32949 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/twitter.js b/twitter.js
index a27393b..d44d183 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){
@@ -102,12 +100,12 @@
liberator.echo(html, true);
}
function showFollowersStatus(username, password, target){
+ // for debug
+ //target = "otsune"
var xhr = new XMLHttpRequest();
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) || [];