diff options
author | mattn | 2008-04-09 11:58:44 +0000 |
---|---|---|
committer | mattn | 2008-04-09 11:58:44 +0000 |
commit | 556afbb392d4cf5a32fc39a3a79816f1702c4537 (patch) | |
tree | 8ed4ca12e16a656e2d4e07d8a5f95784b761bb57 /twitter.js | |
parent | b1b52e84a2cb576e8efce3181302eae216aea64d (diff) | |
download | vimperator-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.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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" />
|