From 556afbb392d4cf5a32fc39a3a79816f1702c4537 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 9 Apr 2008 11:58:44 +0000 Subject: 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 --- twitter.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'twitter.js') 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( <> -- cgit v1.2.3