1/*Name : TweeCool 2 *version: 1.7 3 *Description: Get the latest tweets from twitter. 4 *Website: www.tweecool.com 5 *Licence: No licence, feel free to do whatever you want. 6 *Author: TweeCool 7 */ 8!function(t){t.fn.extend({tweecool:function(e){function a(t){var e=new Date,a=Date.parse(e),i=1e3*t,r=(a-i)/1e3,o=1,n=60,s=3600,_=86400,l=604800,c=2592e3,u=31536e3;return r>o&&n>r?Math.round(r/o)+" seconds ago":r>=n&&s>r?Math.round(r/n)+" minutes ago":r>=s&&_>r?Math.round(r/s)+" hours ago":r>=_&&l>r?Math.round(r/_)+" days ago":r>=l&&c>r?Math.round(r/l)+" weeks ago":r>=c&&u>r?Math.round(r/c)+" months ago":"over a year ago"}var i={username:"tweecool",limit:5,profile_image:!0,show_time:!0,show_media:!1,show_media_size:"thumb",show_actions:!1,action_reply_icon:"↵",action_retweet_icon:"∝",action_favorite_icon:"★",profile_img_url:"profile",show_retweeted_text:!1},e=t.extend(i,e);return this.each(function(){var i,r,o,n,s,_=e,l=t(this),c=t("<ul>").appendTo(l),u=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,w=/@+(\w+)/gi,h=/#+(\w+)/gi;t.getJSON("https://www.api.tweecool.com/?screenname="+_.username+"&count="+_.limit,function(e){return e.errors||null==e?(l.html("No tweets available."),!1):void t.each(e.tweets,function(t,l){i=_.profile_image?"tweet"==_.profile_img_url?'<a href="https://twitter.com/'+_.username+"/status/"+l.id_str+'" target="_blank"><img src="'+e.user.profile_image_url+'" alt="'+_.username+'" /></a>':'<a href="https://twitter.com/'+_.username+'" target="_blank"><img src="'+e.user.profile_image_url+'" alt="'+_.username+'" /></a>':"",o=_.show_time?a(l.timestamp):"",r=_.show_media&&l.media_url?'<a href="https://twitter.com/'+_.username+"/status/"+l.id_str+'" target="_blank"><img src="'+l.media_url+":"+_.show_media_size+'" alt="'+_.username+'" class="media" /></a>':"",_.show_actions?(n='<div class="action-box"><ul>',n+='<li class="ab_reply"><a title="Reply" href="https://twitter.com/intent/tweet?in_reply_to='+l.id_str+'">'+_.action_reply_icon+"</a></li>",n+='<li class="ab_retweet"><a title="Retweet" href="https://twitter.com/intent/retweet?tweet_id='+l.id_str+'">'+_.action_retweet_icon+"</a>"+(""!=l.retweet_count_f?"<span>"+l.retweet_count_f+"</span>":"")+"</li>",n+='<li class="ab_favorite"><a title="Favorite" href="https://twitter.com/intent/favorite?tweet_id='+l.id_str+'">'+_.action_favorite_icon+"</a>"+(""!=l.favorite_count_f?"<span>"+l.favorite_count_f+"</span>":"")+"</li>",n+="</ul></div>"):n="",s=_.show_retweeted_text&&l.retweeted_text?l.retweeted_text:l.text,c.append("<li>"+i+'<div class="tweets_txt">'+s.replace(u,'<a href="$1" target="_blank">$1</a>').replace(w,'<a href="https://twitter.com/$1" target="_blank">@$1</a>').replace(h,'<a href="https://twitter.com/search?q=%23$1" target="_blank">#$1</a>')+r+" <span>"+o+"</span>"+n+"</div></li>")})}).fail(function(){l.html("No tweets available")})})}})}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.