Changeset 76

User picture

Author: frojo56

(2009/03/02 15:12) Almost 3 years ago

Updated to-dos and fixes

Affected files

Updated twitter_fantastico.user.js Download diff

7576
10
// ==/UserScript==
10
// ==/UserScript==
11
11
12
12
13
//TODO: Nested Tweets seems to break this script. Why?
13
//TODO: Eliminate the website from asking for login credentials twice. Unnecessary!
14
//TODO: Eliminate the website from asking for login credentials twice. Unnecessary!
14
//TODO: Set focus on textareas when shown via a reply or retweet. (Bug is thrown from some Twitter code, I believe. Focus() causes errors)
15
//TODO: Set focus on textareas when shown via a reply or retweet. (Bug is thrown from some Twitter code, I believe. Focus() causes errors)
15
//TODO: Create some kind of direct message mechanism on the main page, without refresh (hover-over user image, icon shows up?)
16
//TODO: Create some kind of direct message mechanism on the main page, without refresh (hover-over user image, icon shows up?)
...
...
17
//TODO: Threaded conversations
18
//TODO: Threaded conversations
18
//TODO: Toolbar
19
//TODO: Toolbar
19
20
21
//FIXED(3.2.09): Removed CSS highlighting when on single tweet-page
20
//FIXED(2.27.09): HTTPS errors (via Karolis)
22
//FIXED(2.27.09): HTTPS errors (via Karolis)
21
//ADDED(2.27.09): TwitPic preview, at Karolis' request (http://userscripts.org/users/26455)
23
//ADDED(2.27.09): TwitPic preview, at Karolis' request (http://userscripts.org/users/26455)
22
//FIXED(2.27.09): Suspend self-highlights when viewing your own page (compare "a.profile_link:href" and ".profile-head a:href")
24
//FIXED(2.27.09): Suspend self-highlights when viewing your own page (compare "a.profile_link:href" and ".profile-head a:href")
...
...
135
		friends_timeline_url = protocol+"://twitter.com/statuses/friends_timeline.json";
137
		friends_timeline_url = protocol+"://twitter.com/statuses/friends_timeline.json";
136
		if(useJqueryAjax)
138
		if(useJqueryAjax)
137
		{
139
		{
140
			log("Loading json page data");
138
			j.ajax({
141
			j.ajax({
139
				url:friends_timeline_url,
142
				url:friends_timeline_url,
140
				type: "GET",
143
				type: "GET",
...
...
142
				dataType: "json",
145
				dataType: "json",
143
				async:is_async,
146
				async:is_async,
144
				beforeSend:function(xmlhr){
147
				beforeSend:function(xmlhr){
145
					xmlhr.setRequestHeader("Cookie",getCookieSession());
148
					//xmlhr.setRequestHeader("Cookie",getCookieSession());
146
				},
149
				},
147
				success:function(data){
150
				success:function(data){
148
					if(data == null || data.length == 0)
151
					if(data == null || data.length == 0)