Author: frojo56
(2009/03/02 15:12) Almost 3 years ago
Updated to-dos and fixes
10
// ==/UserScript==
11
12
13
//TODO: Nested Tweets seems to break this script. Why?
//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: Create some kind of direct message mechanism on the main page, without refresh (hover-over user image, icon shows up?)
16
...
17
//TODO: Threaded conversations
18
//TODO: Toolbar
19
20
21
//FIXED(3.2.09): Removed CSS highlighting when on single tweet-page
//FIXED(2.27.09): HTTPS errors (via Karolis)
22
//ADDED(2.27.09): TwitPic preview, at Karolis' request (http://userscripts.org/users/26455)
23
//FIXED(2.27.09): Suspend self-highlights when viewing your own page (compare "a.profile_link:href" and ".profile-head a:href")
24
135
friends_timeline_url = protocol+"://twitter.com/statuses/friends_timeline.json";
137
136
if(useJqueryAjax)
138
{
139
140
log("Loading json page data");
j.ajax({
141
url:friends_timeline_url,
142
type: "GET",
143
dataType: "json",
145
async:is_async,
146
144
beforeSend:function(xmlhr){
147
xmlhr.setRequestHeader("Cookie",getCookieSession());
148
//xmlhr.setRequestHeader("Cookie",getCookieSession());
},
149
success:function(data){
150
if(data == null || data.length == 0)
151
{{log("Loading json page data");j.ajax({j.ajax({beforeSend:function(xmlhr){beforeSend:function(xmlhr){xmlhr.setRequestHeader("Cookie",getCookieSession());//xmlhr.setRequestHeader("Cookie",getCookieSession());success:function(data){success:function(data){