aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
authormattn2008-04-09 11:58:44 +0000
committermattn2008-04-09 11:58:44 +0000
commit556afbb392d4cf5a32fc39a3a79816f1702c4537 (patch)
tree8ed4ca12e16a656e2d4e07d8a5f95784b761bb57 /twitter.js
parentb1b52e84a2cb576e8efce3181302eae216aea64d (diff)
downloadvimperator-plugins-556afbb392d4cf5a32fc39a3a79816f1702c4537.tar.bz2
lang/javascript/vimperator-plugins/trunk/twitter.js:
* 制御終了文字で対応 (ref: http://twitter.com/otsune/statuses/785702748) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9206 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/twitter.js b/twitter.js
index 7bb8ada..a35df2a 100644
--- a/twitter.js
+++ b/twitter.js
@@ -20,7 +20,8 @@
}
function showFollowersStatus(username,password){
var xhr = new XMLHttpRequest();
- xhr.open("GET","http://twitter.com/statuses/friends_timeline.json",false,username,password);
+ //xhr.open("GET","http://twitter.com/statuses/friends_timeline.json",false,username,password);
+ xhr.open("GET","http://twitter.com/statuses/user_timeline/otsune.json",false,username,password);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send(null);
var followers_status = window.eval(xhr.responseText);
@@ -33,8 +34,8 @@
]]></>.toString().replace(/\n\s*/g, '');
for (var i = 0; i < followers_status.length; i++) {
var stat = followers_status[i];
- stat.user.name = stat.user.name.replace(/\u202e/, '');
- stat.text = stat.text.replace(/\u202e/, '');
+ stat.user.name += "\u202c";
+ stat.text += "\u202c";
html += sprintf(
<><![CDATA[
<img src="%s" title="%s" border="0" />