Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

0.0.10 - DeviantART support + add icon + make sure it is in alphabeti…

…cal order in the js file.
  • Loading branch information...
commit 29e860b09e3a72bf3179efd1b7a32bb6164db3e6 1 parent 770788e
@christianv authored
View
2  README.md
@@ -11,6 +11,7 @@ Check out [the example][example] or create [your own lifestream][melifestream] i
Currently supports the following feeds natively:
* [Delicious](http://delicious.com)
+* [DeviantART](http://deviantart.com)
* [Dribbble](http://dribbble.com)
* [Flickr](http://flickr.com)
* [Foursquare](http://foursquare.com)
@@ -115,6 +116,7 @@ Places on the web where this plug-in got mentioned:
## Version log
+* 0.0.10 DeviantART support
* 0.0.9 Foursquare support
* 0.0.8 Add support for Github tags
* 0.0.7 Dribbble support
View
1  css/lifestream.css
@@ -1,4 +1,5 @@
#lifestream .lifestream-delicious { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4w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=);}
#lifestream .lifestream-flickr { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAASBQTFRFAAAA/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v////7++vz+8vv/9/v+//n8//j88ff9/+/3/+v1y+n9zeH4/9brttL1m9D5ss/1/8Tig8H1mL/x/77egLDtcqjs/6XUbKTr/5LK/47GQ4vlP4bk/4LD/4LC/4HCMoHjKXrh/3e7HHPgDWbdCGbdAGHcAF7bAF3bAFjaAFfaAFXZ/0em/zmc/zSd/zCb/yyY/xWM/wB+/wCB/wB8//z+9fn+AFnaAFbZ/wB/AGLc/wCE/wB6////MxNVrwAAACN0Uk5TAP3SmA877vHt00GVlpoSotrBuf4/mQvQvOwOm53AoDw+nw0ylty2AAAAxElEQVQY02NgAAJ5bnFJDiYeBQYIEONmjAcDRl4pEJ9FKB4OZPmAArzxSICfgYGVEVkgnouBOT5ez9w0Ij5e29pBPz5ekYEp3sgtKspWTScgLi7YOF6AgU3VKTLGw9vQJi42NsxPhZ2BLcLVMybGx8QFKBAdGM7OwBlv5esV6a5rFhoSHecI1CIar2XhbGcQH2/pH2SvES8HtlZdGWRjuCbYWgZpNIcxsEgg+IIgpzMoMUMdKyzDAvWvPA8TBxsnswiIDQCjszlTOmxlagAAAABJRU5ErkJggg==); }
#lifestream .lifestream-foursquare { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlI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c301Kj0uMAwDUzdgGCasF2CWYaYJzsFiLluI5md/nfopSBxLv7tjBNadLFKpLJJjKaR/L0AjnGEy0AmkarptBgWn5wVUCyIud62xKLutE4REQ0fuTgKxh2Mw5/OYDfuQO7oTwaYqsETiDfgouYlsboHARZzZuxq824IiZK/ZV5PYMZpEnYNHnmcQ+jqJj1dG8Gh7O9xODlt3rYVM1dQUiji3Lw5/pRODoxN2VVYJ8I9n0Oz1wxeugycQBFcVQGQ6Da4A5OVKjN5/B3+ugEHKHPA6cZ7AzwV1mUBycZAlEZIsQlEVaIoKgVwSx0HUDKyL1mKosw1BnwsXH3/Hk5wEnvfYBHYJmY4IXryeQvxHBoJEFygK2N/bhRTLQynKuHFsC4IeJ/puJfAgLSC2qh6irC4TuCJBvDywHhNPP2MhmcbmI9vQeWI3NgqK3UQLPHD3Cy7c/oB4RwiKFoZOXSkRKJKGilgNcoc2Yfr9FN7MSqgd+Ybje1rsoKF74xig7M0ttahpiaEoqbYmSgSypgH0MSyLprZGzChT6Bl+CyfH2HH9NxNoaOIRJp+ikbyo7X/1tUigGktSM4iE2tgeI2AKvdcT9t9Q1IvqeJQSGQQ2S8JkSiUs1WOr1XIQSYAA+qdJsCRWf2tDCVwmbFQsEWRUXQ+Z5aOi2yzwtdJs0WwoBCb0imliFgkylg6uOugOdBogtdxUDSrJ2KrO3pf5rFgLY02kdYI+t2m63KZ+kPaRFWnMf+yBObJhsp4/AgwAORM5gmDpaw4AAAAASUVORK5CYII=); }
View
34 jquery.lifestream-compiled.js
@@ -1,18 +1,18 @@
-(function(h){var n=function(g){return"http://query.yahooapis.com/v1/public/yql?q=__QUERY__&env=store://datatables.org/alltableswithkeys&format=json".replace("__QUERY__",encodeURIComponent(g))};h.fn.lifestream=function(g){var i=this,e=jQuery.extend({classname:"lifestream",limit:10},g),b={count:e.list.length,items:[]},a=jQuery.extend(true,{},e),d=function(c){h.merge(b.items,c);b.items.sort(function(k,l){return k.date>l.date?-1:k.date===l.date?0:1});c=h('<ul class="'+e.classname+'"/>');for(var f=0,j=
+(function(h){var m=function(g){return"http://query.yahooapis.com/v1/public/yql?q=__QUERY__&env=store://datatables.org/alltableswithkeys&format=json".replace("__QUERY__",encodeURIComponent(g))};h.fn.lifestream=function(g){var i=this,e=jQuery.extend({classname:"lifestream",limit:10},g),b={count:e.list.length,items:[]},a=jQuery.extend(true,{},e),d=function(c){h.merge(b.items,c);b.items.sort(function(k,l){return k.date>l.date?-1:k.date===l.date?0:1});c=h('<ul class="'+e.classname+'"/>');for(var f=0,j=
b.items.length<e.limit?b.items.length:e.limit;f<j;f++)b.items[f].html&&c.append('<li class="'+e.classname+"-"+b.items[f].service+'">'+b.items[f].html+"</li>");i.html(c)};(function(){delete a.list;for(var c=0,f=e.list.length;c<f;c++){var j=e.list[c];if(h.fn.lifestream.feeds[j.service]&&h.isFunction(h.fn.lifestream.feeds[j.service])&&j.user){j._settings=a;h.fn.lifestream.feeds[j.service](j,d)}}})()};h.fn.lifestream.linkify=function(){var g=RegExp("(?:\\b[a-z\\d.-]+://[^<>\\s]+|\\b(?:(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)|(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5]))(?:[;/][^#?<>\\s]*)?(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?(?!\\w)|(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)|(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5]))(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?(?!\\w))",
-"ig"),i=/^[a-z\d.-]+:\/\//i,e={"'":"`",">":"<",")":"(","]":"[","}":"{","\u00bb":"\u00ab","\u203a":"\u2039"},b={callback:function(a,d){return d?'<a href="'+d+'" title="'+d+'">'+a+"</a>":a},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(a,d){d=d||{};var c,f,j="",k=[],l,o,q,p,m;for(c in b)if(d[c]===undefined)d[c]=b[c];for(;c=g.exec(a);){c=c[0];o=g.lastIndex;q=o-c.length;if(!/[\/:]/.test(a.charAt(q-1))){do{f=c;m=c.substr(-1);if(p=e[m]){p=c.match(RegExp("\\"+
-p+"(?!$)","g"));m=c.match(RegExp("\\"+m,"g"));if((p?p.length:0)<(m?m.length:0)){c=c.substr(0,c.length-1);o--}}if(d.punct_regexp)c=c.replace(d.punct_regexp,function(r){o-=r.length;return""})}while(c.length&&c!==f);f=c;i.test(f)||(f=(f.indexOf("@")!==-1?!f.indexOf("mailto:")?"":"mailto:":!f.indexOf("irc.")?"irc://":!f.indexOf("ftp.")?"ftp://":"http://")+f);if(l!=q){k.push([a.slice(l,q)]);l=o}k.push([c,f])}}k.push([a.substr(l)]);for(c=0;c<k.length;c++)j+=d.callback.apply(window,k[c]);return j||a}}();
-h.fn.lifestream.feeds=h.fn.lifestream.feeds||{};h.fn.lifestream.feeds.delicious=function(g,i){var e=function(b){var a="";a+='added bookmark <a href="'+b.u+'">'+b.d+"</a>";return a};h.ajax({url:"http://feeds.delicious.com/v2/json/"+g.user,dataType:"jsonp",success:function(b){var a=[];if(b&&b.length&&b.length>0)for(var d=0,c=b.length;d<c;d++){var f=b[d];a.push({date:new Date(f.dt),service:g.service,html:e(f)})}i(a)}})};h.fn.lifestream.feeds.dribbble=function(g,i){h.ajax({url:"http://api.dribbble.com/players/"+
-g.user+"/shots",dataType:"jsonp",success:function(e){var b=[];if(e&&e.total)for(var a=0,d=e.shots.length;a<d;a++){var c=e.shots[a];b.push({date:new Date(c.created_at),service:g.service,html:'posted the shot <a href="'+c.url+'">'+c.title+"</a>"})}i(b)}})};h.fn.lifestream.feeds.flickr=function(g,i){h.ajax({url:"http://api.flickr.com/services/feeds/photos_public.gne?id="+g.user+"&lang=en-us&format=json",dataType:"jsonp",jsonp:"jsoncallback",success:function(e){var b=[];if(e&&e.items&&e.items.length>
-0)for(var a=0,d=e.items.length;a<d;a++){var c=e.items[a];b.push({date:new Date(c.published),service:g.service,html:'posted a photo <a href="'+c.link+'">'+c.title+"</a>"})}i(b)}})};h.fn.lifestream.feeds.foursquare=function(g,i){h.ajax({url:n('select * from rss where url="https://feeds.foursquare.com/history/'+g.user+'.rss"'),dataType:"jsonp",success:function(e){var b=[];if(e.query&&e.query.count&&e.query.count>0)for(var a=0,d=e.query.count;a<d;a++){var c=e.query.results.item[a];b.push({date:new Date(c.pubDate),
-service:g.service,html:'checked in @ <a href="'+c.link+'">'+c.title+"</a>"})}i(b)}})};h.fn.lifestream.feeds.github=function(g,i){var e=function(a){return a.payload.repo||a.repository.owner+"/"+a.repository.name},b=function(a){var d="";if(a.type==="PushEvent"){var c="",f=e(a);if(a.payload&&a.payload.shas&&a.payload.shas.json&&a.payload.shas.json[2])c=a.payload.shas.json[2]+" by "+a.payload.shas.json[3];d+='<a href="'+a.url+'" title="'+c+'">pushed</a> to <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type===
-"GistEvent"){c=a.payload.desc||"";d+=a.payload.action+'d <a href="'+a.payload.url+'" title ="'+c+'">'+a.payload.name+"</a>"}else if(a.type==="CommitCommentEvent"||a.type==="IssueCommentEvent"){f=e(a);d+='<a href="'+a.url+'">commented</a> on <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type==="PullRequestEvent"){f=a.payload.repo||a.repository.owner+"/"+a.repository.name;d+='<a href="'+a.url+'">'+a.payload.action+'</a> pull request on <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type===
-"CreateEvent"&&(a.payload.ref_type==="tag"||a.payload.ref_type==="branch"||a.payload.object==="tag")){f=e(a);c=a.payload.ref_type?a.payload.ref_type:a.payload.object;j=a.payload.ref?a.payload.ref:a.payload.object_name;d+="created "+c+' <a href="'+a.url+'">'+j+'</a> for <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type==="CreateEvent"){var j=a.payload.object_name==="null"?a.payload.name:a.payload.object_name;d+="created "+a.payload.object+' <a href="'+a.url+'">'+j+"</a>"}else if(a.type===
-"DeleteEvent")d+="deleted "+a.payload.ref_type+' <a href="http://github.com/'+a.repository.owner+"/"+a.repository.name+'">'+a.payload.ref+"</a>";return d};h.ajax({url:n('select json.repository.owner,json.repository.name,json.payload,json.type,json.url, json.created_at from json where url="http://github.com/'+g.user+'.json"'),dataType:"jsonp",success:function(a){var d=[];if(a.query&&a.query.count&&a.query.count>0)for(var c=0,f=a.query.count;c<f;c++){var j=a.query.results.json[c].json;d.push({date:new Date(j.created_at),
-service:g.service,html:b(j)})}i(d)}})};h.fn.lifestream.feeds.googlereader=function(g,i){h.ajax({url:n('select * from xml where url="www.google.com/reader/public/atom/user%2F'+g.user+'%2Fstate%2Fcom.google%2Fstarred"'),dataType:"jsonp",success:function(e){var b=[];if(e.query&&e.query.count&&e.query.count>0){e=e.query.results.feed.entry;for(var a=0,d=e.length;a<d;a++){var c=e[a];b.push({date:new Date(parseInt(c["crawl-timestamp-msec"],10)),service:g.service,html:'starred post <a href="'+c.link.href+
-'">'+c.title.content+"</a>"})}}i(b)}})};h.fn.lifestream.feeds.lastfm=function(g,i){var e=function(b){var a="";a+='loved <a href="'+b.url+'">'+b.name+'</a> by <a href="'+b.artist.url+'">'+b.artist.name+"</a>";return a};h.ajax({url:n('select * from xml where url="http://ws.audioscrobbler.com/2.0/user/'+g.user+'/lovedtracks.xml"'),dataType:"jsonp",success:function(b){var a=[];if(b.query&&b.query.count&&b.query.count>0&&b.query.results.lovedtracks&&b.query.results.lovedtracks.track){b=b.query.results.lovedtracks.track;
-for(var d=0,c=b.length;d<c;d++){var f=b[d];a.push({date:new Date(parseInt(f.date.uts*1E3,10)),service:g.service,html:e(f)})}}i(a)}})};h.fn.lifestream.feeds.stackoverflow=function(g,i){var e=function(b){var a="",d="",c="",f="",j="http://stackoverflow.com/users/"+g.user;if(b.timeline_type==="badge"){d=b.timeline_type+" "+b.action+": "+b.description;c=b.detail;f=j+"?tab=reputation"}else if(b.timeline_type==="revision"||b.timeline_type==="comment"||b.timeline_type==="accepted"||b.timeline_type==="askoranswered"){d=
-b.post_type+" "+b.action;c=b.detail||b.description||"";f="http://stackoverflow.com/questions/"+b.post_id}a+='<a href="'+f+'" title="'+c+'">'+d+"</a> - "+c;return a};h.ajax({url:"http://api.stackoverflow.com/1.1/users/"+g.user+"/timeline?jsonp",dataType:"jsonp",jsonp:"jsonp",success:function(b){var a=[];if(b&&b.total&&b.total>0&&b.user_timelines)for(var d=0,c=b.user_timelines.length;d<c;d++){var f=b.user_timelines[d];a.push({date:new Date(f.creation_date*1E3),service:g.service,html:e(f)})}i(a)}})};
-h.fn.lifestream.feeds.twitter=function(g,i){var e=function(b){return h.fn.lifestream.linkify(b).replace(/ #([A-Za-z0-9\/\.]*)/g,function(a){return' <a target="_new" href="http://twitter.com/search?q='+a.replace(" #","%23")+'">'+a+"</a>"}).replace(/@[\w]+/g,function(a){return'<a href="http://www.twitter.com/'+a.replace("@","")+'">'+a+"</a>"})};h.ajax({url:n('select status.id, status.created_at, status.text from twitter.user.timeline where screen_name="'+g.user+'"'),dataType:"jsonp",success:function(b){var a=
-[];if(b.query&&b.query.count&&b.query.count>0)for(var d=0,c=b.query.count;d<c;d++){var f=b.query.results.statuses[d].status;a.push({date:new Date(f.created_at),service:g.service,html:e(f.text)})}i(a)}})};h.fn.lifestream.feeds.youtube=function(g,i){h.ajax({url:"http://gdata.youtube.com/feeds/api/users/"+g.user+"/favorites?v=2&alt=jsonc",dataType:"jsonp",success:function(e){var b=[];if(e.data&&e.data.items)for(var a=0,d=e.data.items.length;a<d;a++){var c=e.data.items[a];b.push({date:new Date(c.created),
-service:g.service,html:' favorited <a href="'+c.video.player["default"]+'" title="'+c.video.description+'">'+c.video.title+"</a>"})}i(b)}})}})(jQuery);
+"ig"),i=/^[a-z\d.-]+:\/\//i,e={"'":"`",">":"<",")":"(","]":"[","}":"{","\u00bb":"\u00ab","\u203a":"\u2039"},b={callback:function(a,d){return d?'<a href="'+d+'" title="'+d+'">'+a+"</a>":a},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(a,d){d=d||{};var c,f,j="",k=[],l,o,q,p,n;for(c in b)if(d[c]===undefined)d[c]=b[c];for(;c=g.exec(a);){c=c[0];o=g.lastIndex;q=o-c.length;if(!/[\/:]/.test(a.charAt(q-1))){do{f=c;n=c.substr(-1);if(p=e[n]){p=c.match(RegExp("\\"+
+p+"(?!$)","g"));n=c.match(RegExp("\\"+n,"g"));if((p?p.length:0)<(n?n.length:0)){c=c.substr(0,c.length-1);o--}}if(d.punct_regexp)c=c.replace(d.punct_regexp,function(r){o-=r.length;return""})}while(c.length&&c!==f);f=c;i.test(f)||(f=(f.indexOf("@")!==-1?!f.indexOf("mailto:")?"":"mailto:":!f.indexOf("irc.")?"irc://":!f.indexOf("ftp.")?"ftp://":"http://")+f);if(l!=q){k.push([a.slice(l,q)]);l=o}k.push([c,f])}}k.push([a.substr(l)]);for(c=0;c<k.length;c++)j+=d.callback.apply(window,k[c]);return j||a}}();
+h.fn.lifestream.feeds=h.fn.lifestream.feeds||{};h.fn.lifestream.feeds.delicious=function(g,i){var e=function(b){var a="";a+='added bookmark <a href="'+b.u+'">'+b.d+"</a>";return a};h.ajax({url:"http://feeds.delicious.com/v2/json/"+g.user,dataType:"jsonp",success:function(b){var a=[];if(b&&b.length&&b.length>0)for(var d=0,c=b.length;d<c;d++){var f=b[d];a.push({date:new Date(f.dt),service:g.service,html:e(f)})}i(a)}})};h.fn.lifestream.feeds.deviantart=function(g,i){h.ajax({url:m('select title,link,pubDate from rss where url="'+
+g.user+'" | unique(field="title")'),dataType:"jsonp",success:function(e){var b=[];e=e.query.results.item;for(var a,d=0,c=e.length;d<c;++d){a=e[d];b.push({date:new Date(a.pubDate),service:g.service,html:'posted <a href="'+a.link+'">'+a.title+"</a>"})}i(b)}})};h.fn.lifestream.feeds.dribbble=function(g,i){h.ajax({url:"http://api.dribbble.com/players/"+g.user+"/shots",dataType:"jsonp",success:function(e){var b=[];if(e&&e.total)for(var a=0,d=e.shots.length;a<d;a++){var c=e.shots[a];b.push({date:new Date(c.created_at),
+service:g.service,html:'posted the shot <a href="'+c.url+'">'+c.title+"</a>"})}i(b)}})};h.fn.lifestream.feeds.flickr=function(g,i){h.ajax({url:"http://api.flickr.com/services/feeds/photos_public.gne?id="+g.user+"&lang=en-us&format=json",dataType:"jsonp",jsonp:"jsoncallback",success:function(e){var b=[];if(e&&e.items&&e.items.length>0)for(var a=0,d=e.items.length;a<d;a++){var c=e.items[a];b.push({date:new Date(c.published),service:g.service,html:'posted a photo <a href="'+c.link+'">'+c.title+"</a>"})}i(b)}})};
+h.fn.lifestream.feeds.foursquare=function(g,i){h.ajax({url:m('select * from rss where url="https://feeds.foursquare.com/history/'+g.user+'.rss"'),dataType:"jsonp",success:function(e){var b=[];if(e.query&&e.query.count&&e.query.count>0)for(var a=0,d=e.query.count;a<d;a++){var c=e.query.results.item[a];b.push({date:new Date(c.pubDate),service:g.service,html:'checked in @ <a href="'+c.link+'">'+c.title+"</a>"})}i(b)}})};h.fn.lifestream.feeds.github=function(g,i){var e=function(a){return a.payload.repo||
+a.repository.owner+"/"+a.repository.name},b=function(a){var d="";if(a.type==="PushEvent"){var c="",f=e(a);if(a.payload&&a.payload.shas&&a.payload.shas.json&&a.payload.shas.json[2])c=a.payload.shas.json[2]+" by "+a.payload.shas.json[3];d+='<a href="'+a.url+'" title="'+c+'">pushed</a> to <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type==="GistEvent"){c=a.payload.desc||"";d+=a.payload.action+'d <a href="'+a.payload.url+'" title ="'+c+'">'+a.payload.name+"</a>"}else if(a.type==="CommitCommentEvent"||
+a.type==="IssueCommentEvent"){f=e(a);d+='<a href="'+a.url+'">commented</a> on <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type==="PullRequestEvent"){f=a.payload.repo||a.repository.owner+"/"+a.repository.name;d+='<a href="'+a.url+'">'+a.payload.action+'</a> pull request on <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type==="CreateEvent"&&(a.payload.ref_type==="tag"||a.payload.ref_type==="branch"||a.payload.object==="tag")){f=e(a);c=a.payload.ref_type?a.payload.ref_type:a.payload.object;
+j=a.payload.ref?a.payload.ref:a.payload.object_name;d+="created "+c+' <a href="'+a.url+'">'+j+'</a> for <a href="http://github.com/'+f+'">'+f+"</a>"}else if(a.type==="CreateEvent"){var j=a.payload.object_name==="null"?a.payload.name:a.payload.object_name;d+="created "+a.payload.object+' <a href="'+a.url+'">'+j+"</a>"}else if(a.type==="DeleteEvent")d+="deleted "+a.payload.ref_type+' <a href="http://github.com/'+a.repository.owner+"/"+a.repository.name+'">'+a.payload.ref+"</a>";return d};h.ajax({url:m('select json.repository.owner,json.repository.name,json.payload,json.type,json.url, json.created_at from json where url="http://github.com/'+
+g.user+'.json"'),dataType:"jsonp",success:function(a){var d=[];if(a.query&&a.query.count&&a.query.count>0)for(var c=0,f=a.query.count;c<f;c++){var j=a.query.results.json[c].json;d.push({date:new Date(j.created_at),service:g.service,html:b(j)})}i(d)}})};h.fn.lifestream.feeds.googlereader=function(g,i){h.ajax({url:m('select * from xml where url="www.google.com/reader/public/atom/user%2F'+g.user+'%2Fstate%2Fcom.google%2Fstarred"'),dataType:"jsonp",success:function(e){var b=[];if(e.query&&e.query.count&&
+e.query.count>0){e=e.query.results.feed.entry;for(var a=0,d=e.length;a<d;a++){var c=e[a];b.push({date:new Date(parseInt(c["crawl-timestamp-msec"],10)),service:g.service,html:'starred post <a href="'+c.link.href+'">'+c.title.content+"</a>"})}}i(b)}})};h.fn.lifestream.feeds.lastfm=function(g,i){var e=function(b){var a="";a+='loved <a href="'+b.url+'">'+b.name+'</a> by <a href="'+b.artist.url+'">'+b.artist.name+"</a>";return a};h.ajax({url:m('select * from xml where url="http://ws.audioscrobbler.com/2.0/user/'+
+g.user+'/lovedtracks.xml"'),dataType:"jsonp",success:function(b){var a=[];if(b.query&&b.query.count&&b.query.count>0&&b.query.results.lovedtracks&&b.query.results.lovedtracks.track){b=b.query.results.lovedtracks.track;for(var d=0,c=b.length;d<c;d++){var f=b[d];a.push({date:new Date(parseInt(f.date.uts*1E3,10)),service:g.service,html:e(f)})}}i(a)}})};h.fn.lifestream.feeds.stackoverflow=function(g,i){var e=function(b){var a="",d="",c="",f="",j="http://stackoverflow.com/users/"+g.user;if(b.timeline_type===
+"badge"){d=b.timeline_type+" "+b.action+": "+b.description;c=b.detail;f=j+"?tab=reputation"}else if(b.timeline_type==="revision"||b.timeline_type==="comment"||b.timeline_type==="accepted"||b.timeline_type==="askoranswered"){d=b.post_type+" "+b.action;c=b.detail||b.description||"";f="http://stackoverflow.com/questions/"+b.post_id}a+='<a href="'+f+'" title="'+c+'">'+d+"</a> - "+c;return a};h.ajax({url:"http://api.stackoverflow.com/1.1/users/"+g.user+"/timeline?jsonp",dataType:"jsonp",jsonp:"jsonp",
+success:function(b){var a=[];if(b&&b.total&&b.total>0&&b.user_timelines)for(var d=0,c=b.user_timelines.length;d<c;d++){var f=b.user_timelines[d];a.push({date:new Date(f.creation_date*1E3),service:g.service,html:e(f)})}i(a)}})};h.fn.lifestream.feeds.twitter=function(g,i){var e=function(b){return h.fn.lifestream.linkify(b).replace(/ #([A-Za-z0-9\/\.]*)/g,function(a){return' <a target="_new" href="http://twitter.com/search?q='+a.replace(" #","%23")+'">'+a+"</a>"}).replace(/@[\w]+/g,function(a){return'<a href="http://www.twitter.com/'+
+a.replace("@","")+'">'+a+"</a>"})};h.ajax({url:m('select status.id, status.created_at, status.text from twitter.user.timeline where screen_name="'+g.user+'"'),dataType:"jsonp",success:function(b){var a=[];if(b.query&&b.query.count&&b.query.count>0)for(var d=0,c=b.query.count;d<c;d++){var f=b.query.results.statuses[d].status;a.push({date:new Date(f.created_at),service:g.service,html:e(f.text)})}i(a)}})};h.fn.lifestream.feeds.youtube=function(g,i){h.ajax({url:"http://gdata.youtube.com/feeds/api/users/"+
+g.user+"/favorites?v=2&alt=jsonc",dataType:"jsonp",success:function(e){var b=[];if(e.data&&e.data.items)for(var a=0,d=e.data.items.length;a<d;a++){var c=e.data.items[a];b.push({date:new Date(c.created),service:g.service,html:' favorited <a href="'+c.video.player["default"]+'" title="'+c.video.description+'">'+c.video.title+"</a>"})}i(b)}})}})(jQuery);
View
50 jquery.lifestream.js
@@ -1,6 +1,6 @@
/*!
* jQuery Lifestream Plug-in
- * @version 0.0.9
+ * @version 0.0.10
* Show a stream of your online activity
*
* Copyright 2011, Christian Vuerings - http://denbuzze.com
@@ -290,6 +290,30 @@
};
+ $.fn.lifestream.feeds.deviantart = function(obj, callback) {
+ $.ajax({
+ url: createYqlUrl(
+ 'select title,link,pubDate from rss where url="' + obj.user +
+ '" | unique(field="title")'
+ ),
+ dataType: 'jsonp',
+ success: function(resp) {
+ var output = [],
+ items = resp.query.results.item,
+ item;
+ for (var i = 0, n = items.length; i < n; ++i) {
+ item = items[i];
+ output.push({
+ date: new Date(item.pubDate),
+ service: obj.service,
+ html: 'posted <a href="' + item.link + '">' + item.title + '</a>'
+ });
+ }
+ callback(output);
+ }
+ });
+ };
+
$.fn.lifestream.feeds.dribbble = function(obj, callback){
var parseDribbbleItem = function(item){
@@ -722,29 +746,5 @@
});
};
-
- $.fn.lifestream.feeds.deviantart = function(obj, callback) {
- $.ajax({
- url: createYqlUrl(
- 'select title,link,pubDate from rss where url="' + obj.user +
- '" | unique(field="title")'
- ),
- dataType: 'jsonp',
- success: function(resp) {
- var output = [],
- items = resp.query.results.item,
- item;
- for (var i = 0, n = items.length; i < n; ++i) {
- item = items[i];
- output.push({
- date: new Date(item.pubDate),
- service: obj.service,
- html: 'posted <a href="' + item.link + '">' + item.title + '</a>'
- });
- }
- callback(output);
- }
- });
- };
})( jQuery );
View
4 jquery.lifestream.min.js
@@ -1,8 +1,8 @@
/*!
* jQuery Lifestream Plug-in
- * @version 0.0.9
+ * @version 0.0.10
* Show a stream of your online activity
*
* Copyright 2011, Christian Vuerings - http://denbuzze.com
*/
-(function($){var createYqlUrl=function(query){return("http://query.yahooapis.com/v1/public/yql?q=__QUERY__&env=store://datatables.org/alltableswithkeys&format=json").replace("__QUERY__",encodeURIComponent(query))};$.fn.lifestream=function(config){var outputElement=this,settings=jQuery.extend({classname:"lifestream",limit:10},config),data={count:settings.list.length,items:[]},itemsettings=jQuery.extend(true,{},settings),finished=function(inputdata){$.merge(data.items,inputdata);data.items.sort(function(a,b){if(a.date>b.date){return -1}else{if(a.date===b.date){return 0}else{return 1}}});var ul=$('<ul class="'+settings.classname+'"/>'),length=(data.items.length<settings.limit)?data.items.length:settings.limit;for(var i=0,j=length;i<j;i++){if(data.items[i].html){ul.append('<li class="'+settings.classname+"-"+data.items[i].service+'">'+data.items[i].html+"</li>")}}outputElement.html(ul)},load=function(){delete itemsettings.list;for(var i=0,j=settings.list.length;i<j;i++){var item=settings.list[i];if($.fn.lifestream.feeds[item.service]&&$.isFunction($.fn.lifestream.feeds[item.service])&&item.user){item._settings=itemsettings;$.fn.lifestream.feeds[item.service](item,finished)}}};load()};$.fn.lifestream.linkify=(function(){var SCHEME="[a-z\\d.-]+://",IPV4="(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])",HOSTNAME="(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+",TLD="(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)",HOST_OR_IP="(?:"+HOSTNAME+TLD+"|"+IPV4+")",PATH="(?:[;/][^#?<>\\s]*)?",QUERY_FRAG="(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?",URI1="\\b"+SCHEME+"[^<>\\s]+",URI2="\\b"+HOST_OR_IP+PATH+QUERY_FRAG+"(?!\\w)",MAILTO="mailto:",EMAIL="(?:"+MAILTO+")?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+HOST_OR_IP+QUERY_FRAG+"(?!\\w)",URI_RE=new RegExp("(?:"+URI1+"|"+URI2+"|"+EMAIL+")","ig"),SCHEME_RE=new RegExp("^"+SCHEME,"i"),quotes={"'":"`",">":"<",")":"(","]":"[","}":"{","»":"«","›":"‹"},default_options={callback:function(text,href){return href?'<a href="'+href+'" title="'+href+'">'+text+"</a>":text},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(txt,options){options=options||{};var arr,i,link,href,html="",parts=[],idx_prev,idx_last,idx,link_last,matches_begin,matches_end,quote_begin,quote_end;for(i in default_options){if(options[i]===undefined){options[i]=default_options[i]}}while(arr=URI_RE.exec(txt)){link=arr[0];idx_last=URI_RE.lastIndex;idx=idx_last-link.length;if(/[\/:]/.test(txt.charAt(idx-1))){continue}do{link_last=link;quote_end=link.substr(-1);quote_begin=quotes[quote_end];if(quote_begin){matches_begin=link.match(new RegExp("\\"+quote_begin+"(?!$)","g"));matches_end=link.match(new RegExp("\\"+quote_end,"g"));if((matches_begin?matches_begin.length:0)<(matches_end?matches_end.length:0)){link=link.substr(0,link.length-1);idx_last--}}if(options.punct_regexp){link=link.replace(options.punct_regexp,function(a){idx_last-=a.length;return""})}}while(link.length&&link!==link_last);href=link;if(!SCHEME_RE.test(href)){href=(href.indexOf("@")!==-1?(!href.indexOf(MAILTO)?"":MAILTO):!href.indexOf("irc.")?"irc://":!href.indexOf("ftp.")?"ftp://":"http://")+href}if(idx_prev!=idx){parts.push([txt.slice(idx_prev,idx)]);idx_prev=idx_last}parts.push([link,href])}parts.push([txt.substr(idx_prev)]);for(i=0;i<parts.length;i++){html+=options.callback.apply(window,parts[i])}return html||txt}})();$.fn.lifestream.feeds=$.fn.lifestream.feeds||{};$.fn.lifestream.feeds.delicious=function(obj,callback){var parseDeliciousItem=function(item){var output="";output+='added bookmark <a href="'+item.u+'">'+item.d+"</a>";return output};$.ajax({url:"http://feeds.delicious.com/v2/json/"+obj.user,dataType:"jsonp",success:function(data){var output=[];if(data&&data.length&&data.length>0){for(var i=0,j=data.length;i<j;i++){var item=data[i];output.push({date:new Date(item.dt),service:obj.service,html:parseDeliciousItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.dribbble=function(obj,callback){var parseDribbbleItem=function(item){var output='posted the shot <a href="'+item.url+'">'+item.title+"</a>";return output};$.ajax({url:"http://api.dribbble.com/players/"+obj.user+"/shots",dataType:"jsonp",success:function(data){var output=[];if(data&&data.total){for(var i=0,j=data.shots.length;i<j;i++){var item=data.shots[i];output.push({date:new Date(item.created_at),service:obj.service,html:parseDribbbleItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.flickr=function(obj,callback){var parseFlickrItem=function(item){var output='posted a photo <a href="'+item.link+'">'+item.title+"</a>";return output};$.ajax({url:"http://api.flickr.com/services/feeds/photos_public.gne?id="+obj.user+"&lang=en-us&format=json",dataType:"jsonp",jsonp:"jsoncallback",success:function(data){var output=[];if(data&&data.items&&data.items.length>0){for(var i=0,j=data.items.length;i<j;i++){var item=data.items[i];output.push({date:new Date(item.published),service:obj.service,html:parseFlickrItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.foursquare=function(obj,callback){var parseFoursquareStatus=function(item){var output='checked in @ <a href="'+item.link+'">'+item.title+"</a>";return output},parseFoursquare=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){for(var i=0,j=input.query.count;i<j;i++){var status=input.query.results.item[i];output.push({date:new Date(status.pubDate),service:obj.service,html:parseFoursquareStatus(status)})}}return output};$.ajax({url:createYqlUrl('select * from rss where url="https://feeds.foursquare.com/history/'+obj.user+'.rss"'),dataType:"jsonp",success:function(data){callback(parseFoursquare(data))}})};$.fn.lifestream.feeds.github=function(obj,callback){var returnRepo=function(status){return status.payload.repo||status.repository.owner+"/"+status.repository.name},parseGithubStatus=function(status){var output="";if(status.type==="PushEvent"){var title="",repo=returnRepo(status);if(status.payload&&status.payload.shas&&status.payload.shas.json&&status.payload.shas.json[2]){title=status.payload.shas.json[2]+" by "+status.payload.shas.json[3]}output+='<a href="'+status.url+'" title="'+title+'">pushed</a> to <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="GistEvent"){var title=status.payload.desc||"";output+=status.payload.action+'d <a href="'+status.payload.url+'" title ="'+title+'">'+status.payload.name+"</a>"}else{if(status.type==="CommitCommentEvent"||status.type==="IssueCommentEvent"){var repo=returnRepo(status);output+='<a href="'+status.url+'">commented</a> on <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="PullRequestEvent"){var repo=status.payload.repo||status.repository.owner+"/"+status.repository.name;output+='<a href="'+status.url+'">'+status.payload.action+'</a> pull request on <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="CreateEvent"&&(status.payload.ref_type==="tag"||status.payload.ref_type==="branch"||status.payload.object==="tag")){var repo=returnRepo(status),type=status.payload.ref_type?status.payload.ref_type:status.payload.object;name=status.payload.ref?status.payload.ref:status.payload.object_name;output+="created "+type+' <a href="'+status.url+'">'+name+'</a> for <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="CreateEvent"){var name=(status.payload.object_name==="null")?status.payload.name:status.payload.object_name;output+="created "+status.payload.object+' <a href="'+status.url+'">'+name+"</a>"}else{if(status.type==="DeleteEvent"){output+="deleted "+status.payload.ref_type+' <a href="http://github.com/'+status.repository.owner+"/"+status.repository.name+'">'+status.payload.ref+"</a>"}}}}}}}return output},parseGithub=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){for(var i=0,j=input.query.count;i<j;i++){var status=input.query.results.json[i].json;output.push({date:new Date(status.created_at),service:obj.service,html:parseGithubStatus(status)})}}return output};$.ajax({url:createYqlUrl('select json.repository.owner,json.repository.name,json.payload,json.type,json.url, json.created_at from json where url="http://github.com/'+obj.user+'.json"'),dataType:"jsonp",success:function(data){callback(parseGithub(data))}})};$.fn.lifestream.feeds.googlereader=function(obj,callback){var parseReaderEntry=function(entry){return'starred post <a href="'+entry.link.href+'">'+entry.title.content+"</a>"},parseReader=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){var list=input.query.results.feed.entry;for(var i=0,j=list.length;i<j;i++){var entry=list[i];output.push({date:new Date(parseInt(entry["crawl-timestamp-msec"],10)),service:obj.service,html:parseReaderEntry(entry)})}}return output};$.ajax({url:createYqlUrl('select * from xml where url="www.google.com/reader/public/atom/user%2F'+obj.user+'%2Fstate%2Fcom.google%2Fstarred"'),dataType:"jsonp",success:function(data){callback(parseReader(data))}})};$.fn.lifestream.feeds.lastfm=function(obj,callback){var parseLastfmEntry=function(entry){var output="";output+='loved <a href="'+entry.url+'">'+entry.name+'</a> by <a href="'+entry.artist.url+'">'+entry.artist.name+"</a>";return output},parseLastfm=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0&&input.query.results.lovedtracks&&input.query.results.lovedtracks.track){var list=input.query.results.lovedtracks.track;for(var i=0,j=list.length;i<j;i++){var entry=list[i];output.push({date:new Date(parseInt((entry.date.uts*1000),10)),service:obj.service,html:parseLastfmEntry(entry)})}}return output};$.ajax({url:createYqlUrl('select * from xml where url="http://ws.audioscrobbler.com/2.0/user/'+obj.user+'/lovedtracks.xml"'),dataType:"jsonp",success:function(data){callback(parseLastfm(data))}})};$.fn.lifestream.feeds.stackoverflow=function(obj,callback){var parseStackoverflowItem=function(item){var output="",text="",title="",link="",stackoverflow_link="http://stackoverflow.com/users/"+obj.user,question_link="http://stackoverflow.com/questions/";if(item.timeline_type==="badge"){text=item.timeline_type+" "+item.action+": "+item.description;title=item.detail;link=stackoverflow_link+"?tab=reputation"}else{if(item.timeline_type==="revision"||item.timeline_type==="comment"||item.timeline_type==="accepted"||item.timeline_type==="askoranswered"){text=item.post_type+" "+item.action;title=item.detail||item.description||"";link=question_link+item.post_id}}output+='<a href="'+link+'" title="'+title+'">'+text+"</a> - "+title;return output},convertDate=function(date){return new Date(date*1000)};$.ajax({url:"http://api.stackoverflow.com/1.1/users/"+obj.user+"/timeline?jsonp",dataType:"jsonp",jsonp:"jsonp",success:function(data){var output=[];if(data&&data.total&&data.total>0&&data.user_timelines){for(var i=0,j=data.user_timelines.length;i<j;i++){var item=data.user_timelines[i];output.push({date:convertDate(item.creation_date),service:obj.service,html:parseStackoverflowItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.twitter=function(obj,callback){var addTwitterLinks=function(tweet){return $.fn.lifestream.linkify(tweet).replace(/ #([A-Za-z0-9\/\.]*)/g,function(m){return' <a target="_new" href="http://twitter.com/search?q='+m.replace(" #","%23")+'">'+m+"</a>"}).replace(/@[\w]+/g,function(m){return'<a href="http://www.twitter.com/'+m.replace("@","")+'">'+m+"</a>"})},parseTwitter=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){for(var i=0,j=input.query.count;i<j;i++){var status=input.query.results.statuses[i].status;output.push({date:new Date(status.created_at),service:obj.service,html:addTwitterLinks(status.text)})}}return output};$.ajax({url:createYqlUrl('select status.id, status.created_at, status.text from twitter.user.timeline where screen_name="'+obj.user+'"'),dataType:"jsonp",success:function(data){callback(parseTwitter(data))}})};$.fn.lifestream.feeds.youtube=function(obj,callback){var parseYoutubeItem=function(item){return' favorited <a href="'+item.video.player["default"]+'" title="'+item.video.description+'">'+item.video.title+"</a>"},parseYoutube=function(input){var output=[];if(input.data&&input.data.items){for(var i=0,j=input.data.items.length;i<j;i++){var item=input.data.items[i];output.push({date:new Date(item.created),service:obj.service,html:parseYoutubeItem(item)})}}return output};$.ajax({url:"http://gdata.youtube.com/feeds/api/users/"+obj.user+"/favorites?v=2&alt=jsonc",dataType:"jsonp",success:function(data){callback(parseYoutube(data))}})}})(jQuery);
+(function($){var createYqlUrl=function(query){return("http://query.yahooapis.com/v1/public/yql?q=__QUERY__&env=store://datatables.org/alltableswithkeys&format=json").replace("__QUERY__",encodeURIComponent(query))};$.fn.lifestream=function(config){var outputElement=this,settings=jQuery.extend({classname:"lifestream",limit:10},config),data={count:settings.list.length,items:[]},itemsettings=jQuery.extend(true,{},settings),finished=function(inputdata){$.merge(data.items,inputdata);data.items.sort(function(a,b){if(a.date>b.date){return -1}else{if(a.date===b.date){return 0}else{return 1}}});var ul=$('<ul class="'+settings.classname+'"/>'),length=(data.items.length<settings.limit)?data.items.length:settings.limit;for(var i=0,j=length;i<j;i++){if(data.items[i].html){ul.append('<li class="'+settings.classname+"-"+data.items[i].service+'">'+data.items[i].html+"</li>")}}outputElement.html(ul)},load=function(){delete itemsettings.list;for(var i=0,j=settings.list.length;i<j;i++){var item=settings.list[i];if($.fn.lifestream.feeds[item.service]&&$.isFunction($.fn.lifestream.feeds[item.service])&&item.user){item._settings=itemsettings;$.fn.lifestream.feeds[item.service](item,finished)}}};load()};$.fn.lifestream.linkify=(function(){var SCHEME="[a-z\\d.-]+://",IPV4="(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])",HOSTNAME="(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+",TLD="(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)",HOST_OR_IP="(?:"+HOSTNAME+TLD+"|"+IPV4+")",PATH="(?:[;/][^#?<>\\s]*)?",QUERY_FRAG="(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?",URI1="\\b"+SCHEME+"[^<>\\s]+",URI2="\\b"+HOST_OR_IP+PATH+QUERY_FRAG+"(?!\\w)",MAILTO="mailto:",EMAIL="(?:"+MAILTO+")?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+HOST_OR_IP+QUERY_FRAG+"(?!\\w)",URI_RE=new RegExp("(?:"+URI1+"|"+URI2+"|"+EMAIL+")","ig"),SCHEME_RE=new RegExp("^"+SCHEME,"i"),quotes={"'":"`",">":"<",")":"(","]":"[","}":"{","»":"«","›":"‹"},default_options={callback:function(text,href){return href?'<a href="'+href+'" title="'+href+'">'+text+"</a>":text},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(txt,options){options=options||{};var arr,i,link,href,html="",parts=[],idx_prev,idx_last,idx,link_last,matches_begin,matches_end,quote_begin,quote_end;for(i in default_options){if(options[i]===undefined){options[i]=default_options[i]}}while(arr=URI_RE.exec(txt)){link=arr[0];idx_last=URI_RE.lastIndex;idx=idx_last-link.length;if(/[\/:]/.test(txt.charAt(idx-1))){continue}do{link_last=link;quote_end=link.substr(-1);quote_begin=quotes[quote_end];if(quote_begin){matches_begin=link.match(new RegExp("\\"+quote_begin+"(?!$)","g"));matches_end=link.match(new RegExp("\\"+quote_end,"g"));if((matches_begin?matches_begin.length:0)<(matches_end?matches_end.length:0)){link=link.substr(0,link.length-1);idx_last--}}if(options.punct_regexp){link=link.replace(options.punct_regexp,function(a){idx_last-=a.length;return""})}}while(link.length&&link!==link_last);href=link;if(!SCHEME_RE.test(href)){href=(href.indexOf("@")!==-1?(!href.indexOf(MAILTO)?"":MAILTO):!href.indexOf("irc.")?"irc://":!href.indexOf("ftp.")?"ftp://":"http://")+href}if(idx_prev!=idx){parts.push([txt.slice(idx_prev,idx)]);idx_prev=idx_last}parts.push([link,href])}parts.push([txt.substr(idx_prev)]);for(i=0;i<parts.length;i++){html+=options.callback.apply(window,parts[i])}return html||txt}})();$.fn.lifestream.feeds=$.fn.lifestream.feeds||{};$.fn.lifestream.feeds.delicious=function(obj,callback){var parseDeliciousItem=function(item){var output="";output+='added bookmark <a href="'+item.u+'">'+item.d+"</a>";return output};$.ajax({url:"http://feeds.delicious.com/v2/json/"+obj.user,dataType:"jsonp",success:function(data){var output=[];if(data&&data.length&&data.length>0){for(var i=0,j=data.length;i<j;i++){var item=data[i];output.push({date:new Date(item.dt),service:obj.service,html:parseDeliciousItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.deviantart=function(obj,callback){$.ajax({url:createYqlUrl('select title,link,pubDate from rss where url="'+obj.user+'" | unique(field="title")'),dataType:"jsonp",success:function(resp){var output=[],items=resp.query.results.item,item;for(var i=0,n=items.length;i<n;++i){item=items[i];output.push({date:new Date(item.pubDate),service:obj.service,html:'posted <a href="'+item.link+'">'+item.title+"</a>"})}callback(output)}})};$.fn.lifestream.feeds.dribbble=function(obj,callback){var parseDribbbleItem=function(item){var output='posted the shot <a href="'+item.url+'">'+item.title+"</a>";return output};$.ajax({url:"http://api.dribbble.com/players/"+obj.user+"/shots",dataType:"jsonp",success:function(data){var output=[];if(data&&data.total){for(var i=0,j=data.shots.length;i<j;i++){var item=data.shots[i];output.push({date:new Date(item.created_at),service:obj.service,html:parseDribbbleItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.flickr=function(obj,callback){var parseFlickrItem=function(item){var output='posted a photo <a href="'+item.link+'">'+item.title+"</a>";return output};$.ajax({url:"http://api.flickr.com/services/feeds/photos_public.gne?id="+obj.user+"&lang=en-us&format=json",dataType:"jsonp",jsonp:"jsoncallback",success:function(data){var output=[];if(data&&data.items&&data.items.length>0){for(var i=0,j=data.items.length;i<j;i++){var item=data.items[i];output.push({date:new Date(item.published),service:obj.service,html:parseFlickrItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.foursquare=function(obj,callback){var parseFoursquareStatus=function(item){var output='checked in @ <a href="'+item.link+'">'+item.title+"</a>";return output},parseFoursquare=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){for(var i=0,j=input.query.count;i<j;i++){var status=input.query.results.item[i];output.push({date:new Date(status.pubDate),service:obj.service,html:parseFoursquareStatus(status)})}}return output};$.ajax({url:createYqlUrl('select * from rss where url="https://feeds.foursquare.com/history/'+obj.user+'.rss"'),dataType:"jsonp",success:function(data){callback(parseFoursquare(data))}})};$.fn.lifestream.feeds.github=function(obj,callback){var returnRepo=function(status){return status.payload.repo||status.repository.owner+"/"+status.repository.name},parseGithubStatus=function(status){var output="";if(status.type==="PushEvent"){var title="",repo=returnRepo(status);if(status.payload&&status.payload.shas&&status.payload.shas.json&&status.payload.shas.json[2]){title=status.payload.shas.json[2]+" by "+status.payload.shas.json[3]}output+='<a href="'+status.url+'" title="'+title+'">pushed</a> to <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="GistEvent"){var title=status.payload.desc||"";output+=status.payload.action+'d <a href="'+status.payload.url+'" title ="'+title+'">'+status.payload.name+"</a>"}else{if(status.type==="CommitCommentEvent"||status.type==="IssueCommentEvent"){var repo=returnRepo(status);output+='<a href="'+status.url+'">commented</a> on <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="PullRequestEvent"){var repo=status.payload.repo||status.repository.owner+"/"+status.repository.name;output+='<a href="'+status.url+'">'+status.payload.action+'</a> pull request on <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="CreateEvent"&&(status.payload.ref_type==="tag"||status.payload.ref_type==="branch"||status.payload.object==="tag")){var repo=returnRepo(status),type=status.payload.ref_type?status.payload.ref_type:status.payload.object;name=status.payload.ref?status.payload.ref:status.payload.object_name;output+="created "+type+' <a href="'+status.url+'">'+name+'</a> for <a href="http://github.com/'+repo+'">'+repo+"</a>"}else{if(status.type==="CreateEvent"){var name=(status.payload.object_name==="null")?status.payload.name:status.payload.object_name;output+="created "+status.payload.object+' <a href="'+status.url+'">'+name+"</a>"}else{if(status.type==="DeleteEvent"){output+="deleted "+status.payload.ref_type+' <a href="http://github.com/'+status.repository.owner+"/"+status.repository.name+'">'+status.payload.ref+"</a>"}}}}}}}return output},parseGithub=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){for(var i=0,j=input.query.count;i<j;i++){var status=input.query.results.json[i].json;output.push({date:new Date(status.created_at),service:obj.service,html:parseGithubStatus(status)})}}return output};$.ajax({url:createYqlUrl('select json.repository.owner,json.repository.name,json.payload,json.type,json.url, json.created_at from json where url="http://github.com/'+obj.user+'.json"'),dataType:"jsonp",success:function(data){callback(parseGithub(data))}})};$.fn.lifestream.feeds.googlereader=function(obj,callback){var parseReaderEntry=function(entry){return'starred post <a href="'+entry.link.href+'">'+entry.title.content+"</a>"},parseReader=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){var list=input.query.results.feed.entry;for(var i=0,j=list.length;i<j;i++){var entry=list[i];output.push({date:new Date(parseInt(entry["crawl-timestamp-msec"],10)),service:obj.service,html:parseReaderEntry(entry)})}}return output};$.ajax({url:createYqlUrl('select * from xml where url="www.google.com/reader/public/atom/user%2F'+obj.user+'%2Fstate%2Fcom.google%2Fstarred"'),dataType:"jsonp",success:function(data){callback(parseReader(data))}})};$.fn.lifestream.feeds.lastfm=function(obj,callback){var parseLastfmEntry=function(entry){var output="";output+='loved <a href="'+entry.url+'">'+entry.name+'</a> by <a href="'+entry.artist.url+'">'+entry.artist.name+"</a>";return output},parseLastfm=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0&&input.query.results.lovedtracks&&input.query.results.lovedtracks.track){var list=input.query.results.lovedtracks.track;for(var i=0,j=list.length;i<j;i++){var entry=list[i];output.push({date:new Date(parseInt((entry.date.uts*1000),10)),service:obj.service,html:parseLastfmEntry(entry)})}}return output};$.ajax({url:createYqlUrl('select * from xml where url="http://ws.audioscrobbler.com/2.0/user/'+obj.user+'/lovedtracks.xml"'),dataType:"jsonp",success:function(data){callback(parseLastfm(data))}})};$.fn.lifestream.feeds.stackoverflow=function(obj,callback){var parseStackoverflowItem=function(item){var output="",text="",title="",link="",stackoverflow_link="http://stackoverflow.com/users/"+obj.user,question_link="http://stackoverflow.com/questions/";if(item.timeline_type==="badge"){text=item.timeline_type+" "+item.action+": "+item.description;title=item.detail;link=stackoverflow_link+"?tab=reputation"}else{if(item.timeline_type==="revision"||item.timeline_type==="comment"||item.timeline_type==="accepted"||item.timeline_type==="askoranswered"){text=item.post_type+" "+item.action;title=item.detail||item.description||"";link=question_link+item.post_id}}output+='<a href="'+link+'" title="'+title+'">'+text+"</a> - "+title;return output},convertDate=function(date){return new Date(date*1000)};$.ajax({url:"http://api.stackoverflow.com/1.1/users/"+obj.user+"/timeline?jsonp",dataType:"jsonp",jsonp:"jsonp",success:function(data){var output=[];if(data&&data.total&&data.total>0&&data.user_timelines){for(var i=0,j=data.user_timelines.length;i<j;i++){var item=data.user_timelines[i];output.push({date:convertDate(item.creation_date),service:obj.service,html:parseStackoverflowItem(item)})}}callback(output)}})};$.fn.lifestream.feeds.twitter=function(obj,callback){var addTwitterLinks=function(tweet){return $.fn.lifestream.linkify(tweet).replace(/ #([A-Za-z0-9\/\.]*)/g,function(m){return' <a target="_new" href="http://twitter.com/search?q='+m.replace(" #","%23")+'">'+m+"</a>"}).replace(/@[\w]+/g,function(m){return'<a href="http://www.twitter.com/'+m.replace("@","")+'">'+m+"</a>"})},parseTwitter=function(input){var output=[];if(input.query&&input.query.count&&input.query.count>0){for(var i=0,j=input.query.count;i<j;i++){var status=input.query.results.statuses[i].status;output.push({date:new Date(status.created_at),service:obj.service,html:addTwitterLinks(status.text)})}}return output};$.ajax({url:createYqlUrl('select status.id, status.created_at, status.text from twitter.user.timeline where screen_name="'+obj.user+'"'),dataType:"jsonp",success:function(data){callback(parseTwitter(data))}})};$.fn.lifestream.feeds.youtube=function(obj,callback){var parseYoutubeItem=function(item){return' favorited <a href="'+item.video.player["default"]+'" title="'+item.video.description+'">'+item.video.title+"</a>"},parseYoutube=function(input){var output=[];if(input.data&&input.data.items){for(var i=0,j=input.data.items.length;i<j;i++){var item=input.data.items[i];output.push({date:new Date(item.created),service:obj.service,html:parseYoutubeItem(item)})}}return output};$.ajax({url:"http://gdata.youtube.com/feeds/api/users/"+obj.user+"/favorites?v=2&alt=jsonc",dataType:"jsonp",success:function(data){callback(parseYoutube(data))}})}})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.