Changeset 72

User picture

Author: frojo56

(2009/02/27 15:32) Almost 3 years ago

Added to-do about self-coloring

Affected files

Updated twitter_fantastico.user.js Download diff

7172
14
//TODO: Create some kind of direct message mechanism on the main page, without refresh (hover-over user image, icon shows up?)
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)
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
16
//TODO: Threaded conversations
17
//TODO: Suspend self-highlights when viewing your own page (compare "a.profile_link:href" and ".profile-head a:href")
17
18
18
//ADDED: Endless tweets using JSON
19
//ADDED: Endless tweets using JSON
19
//ADDED: Modify retweet (embedded retweet)
20
//ADDED: Modify retweet (embedded retweet)
...
...
132
				data: {page:pageNumber},
133
				data: {page:pageNumber},
133
				dataType: "json",
134
				dataType: "json",
134
				async:is_async,
135
				async:is_async,
136
				beforeSend:function(xmlhr){
137
					xmlhr.setRequestHeader("Cookie",getCookieSession());
138
				},
135
				success:function(data){
139
				success:function(data){
136
					if(data == null || data.length == 0)
140
					if(data == null || data.length == 0)
137
					{	
141
					{	
...
...
644
	//return date.getMonth()+"/"+date.getDay()+"/"+date.getFullYear()+" -
"+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
648
	//return date.getMonth()+"/"+date.getDay()+"/"+date.getFullYear()+" -
"+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
645
	return relativeTime(new Date(t));
649
	return relativeTime(new Date(t));
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
// stolen from twitter.com (hope you guys don't mind)
648
function relativeTime(date, relativeTo) {
657
function relativeTime(date, relativeTo) {
649
  if (!relativeTo) relativeTo = new Date();
658
  if (!relativeTo) relativeTo = new Date();