Changeset 70
Author: frojo56
(2009/02/25 03:52) Almost 3 years ago
Changed .reply class to .reply2 (thanks, Twitter) Release candidate
Author: frojo56
(2009/02/25 03:52) Almost 3 years ago
Changed .reply class to .reply2 (thanks, Twitter) Release candidate
{{//log("Modifying reply button for " + json_tweet.id);//log("Modifying reply button for " + json_tweet.id);tweet.find(".actions a.repl").remove();tweet.find(".actions .repl").remove();tweet.find(".actions a.reply").remove();tweet.find(".actions .reply").remove();tweet.find(".actions .reply2").remove();if(tweet.find(".actions div").length>0)if(tweet.find(".actions div").length>0)jq_reply_link = j("<a class='reply' href='#reply'></a>").appendTo(tweet.find(".actions div"));jq_reply_link = j("<a class='reply2' href='#reply'></a>").appendTo(tweet.find(".actions div"));jq_reply_link = j("<a class='reply' href='#reply'></a>").appendTo(tweet.find(".actions"));jq_reply_link = j("<a class='reply2' href='#reply'></a>").appendTo(tweet.find(".actions"));jq_reply_link.css({"height":"16px","background-image":"url(http://static.twitter.com/images/icon_reply.gif)"});jq_reply_link.css({"height":"16px","background-image":"url(http://static.twitter.com/images/icon_reply.gif)"});jq_reply_link.data('json_tweet',json_tweet);jq_reply_link.data('json_tweet',json_tweet);log("Removing reply button, as this is the current user's tweet.");log("Removing reply button, as this is the current user's tweet.");tweet.find(".reply").remove();tweet.find(".reply").remove();tweet.find(".repl").remove();tweet.find(".repl").remove();tweet.find(".reply2").remove();//log("Adding reply click-event for: "+jq_reply_link.parent().parent().parent().attr("id"));//log("Adding reply click-event for: "+jq_reply_link.parent().parent().parent().attr("id"));jq_tweet_li = j("a.repl").eq(0).parent().parent().parent().clone();jq_tweet_li = j("a.repl").eq(0).parent().parent().parent().clone();jq_tweet_li = j("a.reply").eq(0).parent().parent().parent().clone();jq_tweet_li = j("a.reply").eq(0).parent().parent().parent().clone();jq_tweet_li = j("a.reply2").eq(0).parent().parent().parent().clone();jq_tweet_li.children(".actions a.reply").attr("class","repl");jq_tweet_li.children(".actions a.reply").attr("class","repl");jq_tweet_li.children(".actions a.reply2").attr("class","repl");jq_tweet_li.children(".actions .retweet-link").remove();jq_tweet_li.children(".actions .retweet-link").remove();jq_tweet_li.find("a:contains('in reply to')").remove();jq_tweet_li.find("a:contains('in reply to')").remove();//log("Using "+jq_tweet_li.attr("id")+" as a template for copy.");//log("Using "+jq_tweet_li.attr("id")+" as a template for copy.");{{//reUrlSplitUp=/^https?:\/\/(?:www\.)?twitter\.com(\/([\w\d]+)(\/status\/(\d+))?(?:.*page=(\d+))?)(?:#.*)?$/.exec(location.href);