Changeset 73

User picture

Author: frojo56

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

Removed .mine coloring if on own profile page.

Affected files

Updated twitter_fantastico.user.js Download diff

7273
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
//TODO: Toolbar
18
18
19
//ADDED: Endless tweets using JSON
19
//ADDED: Endless tweets using JSON
20
//ADDED: Modify retweet (embedded retweet)
20
//ADDED: Modify retweet (embedded retweet)
...
...
26
//ADDED: Highlight replies to you (yellow?)
26
//ADDED: Highlight replies to you (yellow?)
27
//ADDED: Highlight own tweets (green)
27
//ADDED: Highlight own tweets (green)
28
28
29
//FIXED(2.27.09): Suspend self-highlights when viewing your own page (compare "a.profile_link:href" and ".profile-head a:href")
29
//FIXED(2.24.09): Twitter changed their reply link class to "reply" and that broke my code. Changed to "reply2" for now
30
//FIXED(2.24.09): Twitter changed their reply link class to "reply" and that broke my code. Changed to "reply2" for now
30
//FIXED(2.17.09): Make embedded retweet/reply work on non-home pages (single tweet pages, or on profile pages)
31
//FIXED(2.17.09): Make embedded retweet/reply work on non-home pages (single tweet pages, or on profile pages)
31
//FIXED(2.17.09): Get username from profile link if not on home page?
32
//FIXED(2.17.09): Get username from profile link if not on home page?
...
...
48
var onTwitterFriendFeed = false;
49
var onTwitterFriendFeed = false;
49
var onTwitterIndividualTweet = false;
50
var onTwitterIndividualTweet = false;
50
var onTwitterUsersProfile = false;
51
var onTwitterUsersProfile = false;
52
var onOwnProfilePage = false;
51
var pageNumber=1;
53
var pageNumber=1;
52
var loading=false;
54
var loading=false;
53
var lastPage=false;
55
var lastPage=false;
...
...
529
			if(reUrlSplitUp[3] !=  null)
531
			if(reUrlSplitUp[3] !=  null)
530
				onTwitterIndividualTweet=true;
532
				onTwitterIndividualTweet=true;
531
			else
533
			else
534
			{
532
				onTwitterUsersProfile=true;
535
				onTwitterUsersProfile=true;
536
				top_profile_link = j("#navigation .top-nav #profile_link").attr("href");
537
				profile_link = j("#content .wrapper h2.thumb a:first").attr("href");
538
				if(top_profile_link == profile_link)
539
					onOwnProfilePage=true;
540
			}
541
533
		}
542
		}
534
		if(reUrlSplitUp[4] != null && reUrlSplitUp[4].length > 0)
543
		if(reUrlSplitUp[4] != null && reUrlSplitUp[4].length > 0)
535
			pageNumber = reUrlSplitUp[4];
544
			pageNumber = reUrlSplitUp[4];
...
...
591
}
600
}
592
function page_css()
601
function page_css()
593
{
602
{
594
	return "div.embedded-retweet textarea, div.embedded-reply textarea \
603
	css = "div.embedded-retweet textarea, div.embedded-reply textarea{width:95%;font-family:arial;font-size:95%;height:125px;} li.hentry{min-height:60px;} span.counter{ float:right; font-weight:bold; position:relative; right:20px; color:#000;} a.retweet-link{text-indent:0px !important;}";
595
	{\
604
	mine_css = "ol.statuses li.mine:hover{background-color:#99CC99;} .mine{background-color:#CCFFCC;}li.mine .meta, li.mine .meta a{color:#666;}";
596
		width:95%;\
605
	to_me_css = "ol.statuses li.to_me:hover{background-color:#eecc44;} div.embedded-retweet a, div.embedded-reply a{margin:0 10px 0 0;} .to_me, .to_me .entry-content{background-color:#FFDD99;background: #FFDD99 none repeat scroll 0 0 !important;}li.to_me .meta, li.to_me .meta a{color:#666;}";
597
		font-family:arial;\
606
	if(!onOwnProfilePage)
598
		font-size:95%;\
607
		css += mine_css;
599
		height:125px;\
608
	css += to_me_css;
600
	}\
609
	return css;
601
	ol.statuses li.mine:hover\
602
	{\
603
		background-color:#99CC99;\
604
	}\
605
	ol.statuses li.to_me:hover{\
606
		background-color:#eecc44;\
607
	}\
608
	div.embedded-retweet a, div.embedded-reply a\
609
	{\
610
		margin:0 10px 0 0;\
611
	}\
612
	li.hentry\
613
	{\
614
		min-height:60px;\
615
	}\
616
	.to_me, .to_me .entry-content\
617
	{\
618
		background-color:#FFDD99;\
619
		background: #FFDD99 none repeat scroll 0 0 !important;\
620
	}\
621
	.mine\
622
	{\
623
		background-color:#CCFFCC;\
624
	}\
625
	span.counter\
626
	{\
627
		float:right;\
628
		font-weight:bold;\
629
		position:relative;\
630
		right:20px;\
631
		color: #000;\
632
	}\
633
	li.to_me .meta, li.to_me .meta a, li.mine .meta, li.mine .meta a\
634
	{\
635
		color:#666;\
636
	}\
637
	a.retweet-link\
638
	{\
639
		text-indent:0px !important;\
640
	}";
641
}
610
}
642
function format_time(t)
611
function format_time(t)
643
{
612
{