Author: frojo56
(2009/02/27 15:32) Almost 3 years ago
Added to-do about self-coloring
14
//TODO: Create some kind of direct message mechanism on the main page, without refresh (hover-over user image, icon shows up?)
15
//TODO: @reply helper (this will be hard. api only gets 100 users at a time, no way to filter through entire friend collection)
16
//TODO: Threaded conversations
17
//TODO: Suspend self-highlights when viewing your own page (compare "a.profile_link:href" and ".profile-head a:href")
18
//ADDED: Endless tweets using JSON
19
//ADDED: Modify retweet (embedded retweet)
20
...
132
data: {page:pageNumber},
133
dataType: "json",
134
async:is_async,
135
136
beforeSend:function(xmlhr){
137
xmlhr.setRequestHeader("Cookie",getCookieSession());
138
},
success:function(data){
139
if(data == null || data.length == 0)
140
{
141
644
//return date.getMonth()+"/"+date.getDay()+"/"+date.getFullYear()+" - "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
648
645
return relativeTime(new Date(t));
649
646
}
650
651
function getCookieSession()
652
653
r = /_twitter_sess=([^\s;]+)/;
654
return r.exec(document.cookie.toString())[0];
655
647
// stolen from twitter.com (hope you guys don't mind)
656
function relativeTime(date, relativeTo) {
657
if (!relativeTo) relativeTo = new Date();
658
data: {page:pageNumber},data: {page:pageNumber},beforeSend:function(xmlhr){xmlhr.setRequestHeader("Cookie",getCookieSession());success:function(data){success:function(data){{{{function relativeTime(date, relativeTo) {function relativeTime(date, relativeTo) {