Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v0.2.3 Digg support

* digg.js: Re-align & use === instead of ==
* bitbucket.js: remove trailing spaces
  • Loading branch information...
commit 6872b2cd0172f7594c615ac1b2e5e31315e32de8 1 parent 57fa298
@christianv authored
View
1  README.md
@@ -17,6 +17,7 @@ Currently supports the following feeds:
* [Bitbucket](https://bitbucket.org/)
* [Bitly](http://bitly.com)
* [Blogger](http://blogger.com)
+* [Digg](http://digg.com)
* [Dailymotion](http://dailymotion.com)
* [Delicious](http://delicious.com)
* [DeviantART](http://deviantart.com)
View
4 css/lifestream.css
@@ -6,6 +6,7 @@
.lifestream-deviantart { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtc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jtZohkAAAAASUVORK5CYII=);}
+.lifestream-facebook_page { background-image: url(data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5Ojf/2wBDAQoKCg0MDRoPDxo3JR8lNzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzf/wAARCAAQABADASIAAhEBAxEB/8QAFAABAAAAAAAAAAAAAAAAAAAABv/EACEQAAMAAQQCAwEAAAAAAAAAAAECAwQABQYRElEUIUFx/8QAFQEBAQAAAAAAAAAAAAAAAAAABAX/xAAZEQADAQEBAAAAAAAAAAAAAAABAhEAEjH/2gAMAwEAAhEDEQA/ADsI0tVIwmz0chURB2WP4ANK+Qcexto41iUfbM45t5JSuUxInBiR2jL7++ho9jRM2lkQz5SopDoysQyn8IPvSXmG5Nm7XtMU3lbKuEvypivl50HR7Ye/7qw5PSzzCWQ7/9k=);}
.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+nw0ylty2AAAAxElEQVQY02NgAAJ5bnFJ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Wryge3hW0q3k3c3fB7ld7luy5WmJbUrWXtFe6d7A0sLS1TL9sR9n78pTyvgqPisZKjcqtldP7+Pt697vtb6jSrCqsendAeODOQZ+DzdWG1SWHcIdyDj2piarp/J79fV2tem1h7YfDosODR8KOdNQ51NUd1ThaVA/XS+vHj8Ufu/mD5w+tDayGg42MxsLj4Lj0+NMfE37sPxFwov0k+2TDTwY/VTbRmgqaoeblzZMtKS2DrbGtPaf8T7W3Obc1/Wzx8+HTOqcrziifKTpLOpt39tO5Feemzmedn7iQfGG4fUn7/YsxF293hHZ0Xwq4dOWy9+WLne6d5664XDl91enqqWvsay3X7a83d9l1Nf1i90tTt3138w2HG603HW+29czrOdvr2nvhluety7f9bl/vW9DX0x/Zf2cgfmDwDv/O2N30uy/u5dybub/uAfZBwUOFhyWPNB5V/2rya+Og/eCZIc+hrsfhj+8P84af/Zb92/uRvCfUJyWj2qN1YzZjp8e9x28+Xfh05FnWs5mJ/N8Vf698bvz8pz/c/uiajJkceSF+8enPbS/VXh5+ZfuqfSpk6tHrjNcz0wVv1N4cect+2/ku+t3oTO57/PvSDyYf2j4GfHzwKePTp78AA5vz/OzO54oAAAAJcEhZcwAACxMAAAsTAQCanBgAAACYSURBVDgRY3xYEPyfgQLARIFesNZRAxgYhkYYXMMX1YS80AHUbALEp3AZgs+AZUBNlUD8HYh9gPgOEGMAXAbsA6pMRFL9Gsj2BGIQjQKwGXAZqCIIiH+hqIS4AOQSkIvgAN2Ap0AZkE0f4SpQGaCwiADivzBhZANAmkCaQYbgA5uAkrkwBTADQM4FORvkfGLAdKAiUAwxAAA+axqTPcW6fAAAAABJRU5ErkJggg==); }
.lifestream-formspring { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/I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ErkJggg==);}
.lifestream-wordpress { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2BJREFUeNpcU11MU2cYfs5PhRXoD1iko5QWKj+6tjJ/ICqaOOdwms3oxTYniZnLsmQXSyR6tSxm2YUxmTdLlgzmLuayzSyZPxNdNMQwSAe6AaUxUCn9NdaD0Ha0pVDac/Z+Ry7MTvKcnO/9nuc57/t978vZz/Thf08z4SPCXsKWtdgEYZDQS/C/SBbZq8PpVhcjPu9pgec/O7C5fvKd9ma+vlRJs3hkmeOvjPq33nkY+asoy18S/+IaH9xaBusI182GsobvP+jivcG4wzMdRUhKYKVQRGNNJfa7HXDba2a6+24p8VQ2SPy3CXnBuOstZvCVo9rwypWPD1vPXx02Dz4MYyGTg6wAHMcjlV3BWDCO1aJc1XeqS9vvDa4kssuNpLvDMnBS2oPj57qlS/e8LYWiDI8/hh0bayHyvFpagswmwhJ+6zmKEo2IXL4Qc33+QzmVs5sxTr3pso+LAtfy6cFt2NVcC17UQAGP04e2o+fwDsiUBS+K8D9Nqobp3Eod0zAtM+jq3tmq/2bAp25qS0uwSuKRoITRWUmNGcpegkCmv96fVdfj0XkwDdMyA7u7rto+EppHdCGDFrMRujItOEEDz0wciqJg3yYLHQaPWCqrGgwH5tC0obKBPmvVIqkmTtSsw8D0E2gEHnuazIAiw1alVQVt9SaUCwrWV2gRmU8jNJeEwHNsS2AG0UdSImg16eGJJOnkFXSSQXE1j1pdCW78eZ9YPNosBnSYS9E/NoOy4hKm4gvsKqPM4I/Lnql/OxurkckrGH+covT0eNVmwkQggt+H/gH71xtbHHDaLBgYm8KeViuYhsJ3mUHvbV/I3V5f+chaVQ5POKGm/cnrbfg7NIdgYgnJbA6brRvwLJuHUa/Dga2tfqYh2iVm4KO7//n93puZM/uaMvHFZeRWi+qhxXOARleFoakYNRQwm1zCF++9ljnR158lzY9My6/NRM+MlJo79vXV2MltlkBBBqalReiN61FjqYOUk1lLosNuChz/9maEcUlzlgnVWWDD9FP3djSc/U4dpoNOm/fd9hbdTsfLNkbyBJ6EfxmdXrztC7vZMAUvfHjx+OUHz4eJ9Q6hnPULwVjh3O2qcHUeEQ0mVyGdsKgjW1H5uJB6NpmeHLqW9g1PUoi1ZIqQ+U+AAQBxOVz5xw02pQAAAABJRU5ErkJggg==);}
-.lifestream-youtube { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAHVQTFRFAAAA1/v+/+/v9eas9eWs/9LT/9LS/9HS/8/PocXiosXi/7u6/7Sy1a5x8av8/5ubZorGZ4rHnnAcRmirRWeq/1hPgUoR/9rZ/7q61a5w/5qaupJL9uat/1hO/1dO8CQA1/v9/ysN8SQA/ysOAAAA/yoN////MKUSUgAAAAF0Uk5TAEDm2GYAAACSSURBVBjTVY6HEsIwDEPN3pTdFroSW/r/T8ShlB66nM95khOLlA/ethwkQtrROMpBaRu+7ESj9WBm3dwv3Q9U1lUJXCYj8JEzD3btwb8khyoCFL1ygVMEhZfgBgRgcpXfiLhXM7AhC91NV5AwAPBJLlU83Di4f4CmN5R1QTZr7pFx4Yk2xtimk5oIkbSCBgyfvAGqWiEukoSMuwAAAABJRU5ErkJggg==);}
-.lifestream-facebook_page { background-image: url(data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5Ojf/2wBDAQoKCg0MDRoPDxo3JR8lNzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzf/wAARCAAQABADASIAAhEBAxEB/8QAFAABAAAAAAAAAAAAAAAAAAAABv/EACEQAAMAAQQCAwEAAAAAAAAAAAECAwQABQYRElEUIUFx/8QAFQEBAQAAAAAAAAAAAAAAAAAABAX/xAAZEQADAQEBAAAAAAAAAAAAAAABAhEAEjH/2gAMAwEAAhEDEQA/ADsI0tVIwmz0chURB2WP4ANK+Qcexto41iUfbM45t5JSuUxInBiR2jL7++ho9jRM2lkQz5SopDoysQyn8IPvSXmG5Nm7XtMU3lbKuEvypivl50HR7Ye/7qw5PSzzCWQ7/9k=);}
+.lifestream-youtube { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAHVQTFRFAAAA1/v+/+/v9eas9eWs/9LT/9LS/9HS/8/PocXiosXi/7u6/7Sy1a5x8av8/5ubZorGZ4rHnnAcRmirRWeq/1hPgUoR/9rZ/7q61a5w/5qaupJL9uat/1hO/1dO8CQA1/v9/ysN8SQA/ysOAAAA/yoN////MKUSUgAAAAF0Uk5TAEDm2GYAAACSSURBVBjTVY6HEsIwDEPN3pTdFroSW/r/T8ShlB66nM95khOLlA/ethwkQtrROMpBaRu+7ESj9WBm3dwv3Q9U1lUJXCYj8JEzD3btwb8khyoCFL1ygVMEhZfgBgRgcpXfiLhXM7AhC91NV5AwAPBJLlU83Di4f4CmN5R1QTZr7pFx4Yk2xtimk5oIkbSCBgyfvAGqWiEukoSMuwAAAABJRU5ErkJggg==);}
View
2  download/services.json
@@ -1 +1 @@
-["bitbucket","bitly","blogger","dailymotion","delicious","deviantart","dribbble","facebook_page","flickr","foomark","formspring","forrst","foursquare","github","googlereader","instapaper","iusethis","lastfm","mlkshk","picplz","pinboard","posterous","reddit","slideshare","snipplr","stackoverflow","tumblr","twitter","vimeo","wordpress","youtube"]
+["bitbucket","bitly","blogger","dailymotion","delicious","deviantart","digg","dribbble","facebook_page","flickr","foomark","formspring","forrst","foursquare","github","googlereader","instapaper","iusethis","lastfm","mlkshk","picplz","pinboard","posterous","reddit","slideshare","snipplr","stackoverflow","tumblr","twitter","vimeo","wordpress","youtube"]
View
505 jquery.lifestream.js
@@ -1,6 +1,6 @@
/*!
* jQuery Lifestream Plug-in
- * @version 0.2.2
+ * @version 0.2.3
* Show a stream of your online activity
*
* Copyright 2011, Christian Vuerings - http://denbuzze.com
@@ -170,120 +170,120 @@
$.fn.lifestream.feeds = $.fn.lifestream.feeds || {};
}( jQuery ));
-(function($) {
-$.fn.lifestream.feeds.bitbucket = function( config, callback ) {
-
- var template = $.extend({},
- {
- commit: '<a href="http://bitbucket.org/${owner}/${name}/changeset/${node}/">committed</a> at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
- pullrequest_fulfilled: 'fulfilled a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
- pullrequest_rejected: 'rejected a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
- pullrequest_created: 'created a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
- create: 'created a new project at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
- fork: 'forked <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>'
- },
- config.template),
-
- supported_events = [
- "commit",
- "pullrequest_fulfilled",
- "pullrequest_rejected",
- "pullrequest_created",
- "create",
- "fork"
- ],
-
- parseBitbucketStatus = function( status ) {
- if ($.inArray(status.event, supported_events) !== -1) {
- //bb generates some weird create events, check for repository
- if (status.repository) {
- if (status.event === "commit") {
- return $.tmpl( template.commit, {
- owner: status.repository.owner,
- name: status.repository.name,
- node: status.node
- });
- } else {
- return $.tmpl( template[status.event], {
- owner: status.repository.owner,
- name: status.repository.name
- });
- }
- }
- }
- },
-
- parseBitbucket = function( input ) {
- var output = [], i = 0;
- if (input.query && input.query.count && input.query.count > 0) {
- $.each(input.query.results.json, function () {
- output.push({
- date: new Date(this.events.created_on.replace(/-/g, '/')),
- config: config,
- html: parseBitbucketStatus(this.events)
- });
- });
- }
-
- return output;
- };
-
- $.ajax({
- url: $.fn.lifestream.createYqlUrl('select events.event,'
- + 'events.node, events.created_on,'
- + 'events.repository.name, events.repository.owner '
- + 'from json where url = "https://api.bitbucket.org/1.0/users/'
- + config.user + '/events/"'),
- dataType: 'jsonp',
- success: function( data ) {
- callback(parseBitbucket(data));
- }
- });
-
- return {
- 'template' : template
- };
-};
-})(jQuery);(function($) {
-$.fn.lifestream.feeds.bitly = function( config, callback ) {
-
- var template = $.extend({},
- {
- created: 'created URL <a href="${short_url}" title="${title}">'
- + '${short_url}</a>'
- },
- config.template);
-
- $.ajax({
- url: $.fn.lifestream.createYqlUrl('select * from json where url="'
- + 'http://bitly.com/u/' + config.user + '.json"'),
- dataType: "jsonp",
- success: function( input ) {
- var output = [], i = 0, j;
- if ( input.query && input.query.count && input.query.results.json
- && input.query.results.json.data ) {
- list = input.query.results.json.data;
- j = list.length;
- for( ; i < j; i++) {
- var item = list[i];
- output.push({
- date: new Date(item.created * 1000),
- config: config,
- html: $.tmpl( template.created, item )
- });
- }
- }
- callback(output);
- }
- });
-
- // Expose the template.
- // We use this to check which templates are available
- return {
- "template" : template
- };
-
-};
+(function($) {
+$.fn.lifestream.feeds.bitbucket = function( config, callback ) {
+
+ var template = $.extend({},
+ {
+ commit: '<a href="http://bitbucket.org/${owner}/${name}/changeset/${node}/">committed</a> at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
+ pullrequest_fulfilled: 'fulfilled a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
+ pullrequest_rejected: 'rejected a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
+ pullrequest_created: 'created a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
+ create: 'created a new project at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',
+ fork: 'forked <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>'
+ },
+ config.template),
+
+ supported_events = [
+ "commit",
+ "pullrequest_fulfilled",
+ "pullrequest_rejected",
+ "pullrequest_created",
+ "create",
+ "fork"
+ ],
+
+ parseBitbucketStatus = function( status ) {
+ if ($.inArray(status.event, supported_events) !== -1) {
+ //bb generates some weird create events, check for repository
+ if (status.repository) {
+ if (status.event === "commit") {
+ return $.tmpl( template.commit, {
+ owner: status.repository.owner,
+ name: status.repository.name,
+ node: status.node
+ });
+ } else {
+ return $.tmpl( template[status.event], {
+ owner: status.repository.owner,
+ name: status.repository.name
+ });
+ }
+ }
+ }
+ },
+
+ parseBitbucket = function( input ) {
+ var output = [], i = 0;
+ if (input.query && input.query.count && input.query.count > 0) {
+ $.each(input.query.results.json, function () {
+ output.push({
+ date: new Date(this.events.created_on.replace(/-/g, '/')),
+ config: config,
+ html: parseBitbucketStatus(this.events)
+ });
+ });
+ }
+
+ return output;
+ };
+
+ $.ajax({
+ url: $.fn.lifestream.createYqlUrl('select events.event,'
+ + 'events.node, events.created_on,'
+ + 'events.repository.name, events.repository.owner '
+ + 'from json where url = "https://api.bitbucket.org/1.0/users/'
+ + config.user + '/events/"'),
+ dataType: 'jsonp',
+ success: function( data ) {
+ callback(parseBitbucket(data));
+ }
+ });
+
+ return {
+ 'template' : template
+ };
+};
+})(jQuery);(function($) {
+$.fn.lifestream.feeds.bitly = function( config, callback ) {
+
+ var template = $.extend({},
+ {
+ created: 'created URL <a href="${short_url}" title="${title}">'
+ + '${short_url}</a>'
+ },
+ config.template);
+
+ $.ajax({
+ url: $.fn.lifestream.createYqlUrl('select * from json where url="'
+ + 'http://bitly.com/u/' + config.user + '.json"'),
+ dataType: "jsonp",
+ success: function( input ) {
+ var output = [], i = 0, j;
+ if ( input.query && input.query.count && input.query.results.json
+ && input.query.results.json.data ) {
+ list = input.query.results.json.data;
+ j = list.length;
+ for( ; i < j; i++) {
+ var item = list[i];
+ output.push({
+ date: new Date(item.created * 1000),
+ config: config,
+ html: $.tmpl( template.created, item )
+ });
+ }
+ }
+ callback(output);
+ }
+ });
+
+ // Expose the template.
+ // We use this to check which templates are available
+ return {
+ "template" : template
+ };
+
+};
})(jQuery);(function($) {
$.fn.lifestream.feeds.blogger = function( config, callback ) {
@@ -487,7 +487,7 @@ $.fn.lifestream.feeds.digg = function( config, callback ) {
$.ajax({
url: "http://services.digg.com/2.0/user.getActivity?username="
- + config.user + "&type=javascript",
+ + config.user + "&type=javascript",
dataType: "jsonp",
success: function( data ) {
var output = [], i = 0, j;
@@ -505,17 +505,18 @@ $.fn.lifestream.feeds.digg = function( config, callback ) {
for( l = 0; l<k; l++) {
// Get most accurate date
var time;
- if( item.activity[l] == 'submission' || item.promote_date == null ) {
+ if( item.activity[l] === 'submission'
+ || item.promote_date === null ) {
time = item.date_created;
} else {
time = item.promote_date;
}
output.push({
- date: new Date( time * 1000 ),
- config: config,
- html: $.tmpl( template[item.activity[l]], item )
- });
+ date: new Date( time * 1000 ),
+ config: config,
+ html: $.tmpl( template[item.activity[l]], item )
+ });
}
}
}
@@ -569,55 +570,55 @@ $.fn.lifestream.feeds.dribbble = function( config, callback ) {
};
};
- })(jQuery);(function($) {
-$.fn.lifestream.feeds.facebook_page = function( config, callback ) {
-
- var template = $.extend({},
- {
- wall_post: 'post on wall <a href="${link}">${title}</a>'
- },
- config.template),
-
- /**
- * Parse the input from facebook
- */
- parseFBPage = function( input ) {
- var output = [], list, i = 0, j;
-
- if(input.query && input.query.count && input.query.count >0) {
- list = input.query.results.rss.channel.item;
- j = list.length;
- for( ; i<j; i++) {
- var item = list[i];
- if( $.trim( item.title ) ){
- output.push({
- date: new Date(item["pubDate"]),
- config: config,
- html: $.tmpl( template.wall_post, item )
- });
- }
- }
- }
- return output;
- };
-
- $.ajax({
- url: $.fn.lifestream.createYqlUrl('select * from xml where url="'
- + 'www.facebook.com/feeds/page.php?id='
- + config.user + '&format=rss20"'),
- dataType: 'jsonp',
- success: function( data ) {
- callback(parseFBPage(data));
- }
- });
-
- // Expose the template.
- // We use this to check which templates are available
- return {
- "template" : template
- };
-
-};
+ })(jQuery);(function($) {
+$.fn.lifestream.feeds.facebook_page = function( config, callback ) {
+
+ var template = $.extend({},
+ {
+ wall_post: 'post on wall <a href="${link}">${title}</a>'
+ },
+ config.template),
+
+ /**
+ * Parse the input from facebook
+ */
+ parseFBPage = function( input ) {
+ var output = [], list, i = 0, j;
+
+ if(input.query && input.query.count && input.query.count >0) {
+ list = input.query.results.rss.channel.item;
+ j = list.length;
+ for( ; i<j; i++) {
+ var item = list[i];
+ if( $.trim( item.title ) ){
+ output.push({
+ date: new Date(item["pubDate"]),
+ config: config,
+ html: $.tmpl( template.wall_post, item )
+ });
+ }
+ }
+ }
+ return output;
+ };
+
+ $.ajax({
+ url: $.fn.lifestream.createYqlUrl('select * from xml where url="'
+ + 'www.facebook.com/feeds/page.php?id='
+ + config.user + '&format=rss20"'),
+ dataType: 'jsonp',
+ success: function( data ) {
+ callback(parseFBPage(data));
+ }
+ });
+
+ // Expose the template.
+ // We use this to check which templates are available
+ return {
+ "template" : template
+ };
+
+};
})(jQuery);(function($) {
$.fn.lifestream.feeds.flickr = function( config, callback ) {
@@ -658,48 +659,48 @@ $.fn.lifestream.feeds.flickr = function( config, callback ) {
};
};
-})(jQuery);(function($) {
-$.fn.lifestream.feeds.foomark = function( config, callback ) {
-
- var template = $.extend({},
- {
- bookmarked: 'bookmarked <a href="${url}">${url}</a>'
- },
- config.template);
-
- $.ajax({
- url: "http://api.foomark.com/urls/list/",
- data: {
- format: "jsonp",
- username: config.user
- },
- dataType: "jsonp",
- success: function( data ) {
-
- var output = [], i=0, j;
- if( data && data.length && data.length > 0 ) {
- j = data.length;
- for( ; i < j; i++ ) {
- var item = data[i];
- output.push({
- date: new Date( item.created_at.replace(/-/g, '/') ),
- config: config,
- html: $.tmpl( template.bookmarked, item )
- });
- }
- }
- callback( output );
- }
- });
-
- // Expose the template.
- // We use this to check which templates are available
- return {
- "template" : template
- };
-
-};
-})(jQuery);
+})(jQuery);(function($) {
+$.fn.lifestream.feeds.foomark = function( config, callback ) {
+
+ var template = $.extend({},
+ {
+ bookmarked: 'bookmarked <a href="${url}">${url}</a>'
+ },
+ config.template);
+
+ $.ajax({
+ url: "http://api.foomark.com/urls/list/",
+ data: {
+ format: "jsonp",
+ username: config.user
+ },
+ dataType: "jsonp",
+ success: function( data ) {
+
+ var output = [], i=0, j;
+ if( data && data.length && data.length > 0 ) {
+ j = data.length;
+ for( ; i < j; i++ ) {
+ var item = data[i];
+ output.push({
+ date: new Date( item.created_at.replace(/-/g, '/') ),
+ config: config,
+ html: $.tmpl( template.bookmarked, item )
+ });
+ }
+ }
+ callback( output );
+ }
+ });
+
+ // Expose the template.
+ // We use this to check which templates are available
+ return {
+ "template" : template
+ };
+
+};
+})(jQuery);
(function($) {
$.fn.lifestream.feeds.formspring = function( config, callback ) {
@@ -1504,46 +1505,46 @@ $.fn.lifestream.feeds.slideshare = function( config, callback ) {
};
};
-})(jQuery);(function($) {
-$.fn.lifestream.feeds.snipplr = function( config, callback ) {
-
- var template = $.extend({},
- {
- posted: 'posted a snippet <a href="${link}">${title}</a>'
- },
- config.template);
-
- var parseSnipplr = function ( input ) {
- var output = [], list, i = 0, j, item;
-
- if ( input.query && input.query.count && input.query.count > 0
- && input.query.results.rss.channel.item ) {
- list = input.query.results.rss.channel.item;
- j = list.length;
- for ( ; i < j; i++) {
- item = list[i];
-
- output.push({
- date: new Date( item.pubDate ),
- config: config,
- html: $.tmpl( template.posted, item )
- });
- }
- }
-
- return output;
- };
-
- $.ajax({
- url: $.fn.lifestream.createYqlUrl('select * from xml where '
- + 'url="http://snipplr.com/rss/users/' + config.user + '"'),
- dataType: "jsonp",
- success: function ( data ) {
- callback(parseSnipplr(data));
- }
- });
-
-};
+})(jQuery);(function($) {
+$.fn.lifestream.feeds.snipplr = function( config, callback ) {
+
+ var template = $.extend({},
+ {
+ posted: 'posted a snippet <a href="${link}">${title}</a>'
+ },
+ config.template);
+
+ var parseSnipplr = function ( input ) {
+ var output = [], list, i = 0, j, item;
+
+ if ( input.query && input.query.count && input.query.count > 0
+ && input.query.results.rss.channel.item ) {
+ list = input.query.results.rss.channel.item;
+ j = list.length;
+ for ( ; i < j; i++) {
+ item = list[i];
+
+ output.push({
+ date: new Date( item.pubDate ),
+ config: config,
+ html: $.tmpl( template.posted, item )
+ });
+ }
+ }
+
+ return output;
+ };
+
+ $.ajax({
+ url: $.fn.lifestream.createYqlUrl('select * from xml where '
+ + 'url="http://snipplr.com/rss/users/' + config.user + '"'),
+ dataType: "jsonp",
+ success: function ( data ) {
+ callback(parseSnipplr(data));
+ }
+ });
+
+};
})(jQuery);(function($) {
$.fn.lifestream.feeds.stackoverflow = function( config, callback ) {
View
4 jquery.lifestream.min.js
@@ -1,7 +1,7 @@
/*!
* jQuery Lifestream Plug-in
- * @version 0.2.2
+ * @version 0.2.3
* Show a stream of your online activity
*
* Copyright 2011, Christian Vuerings - http://denbuzze.com
- *//*globals jQuery, $ */(function(a){a.fn.lifestream=function(b){return this.each(function(){var c=a(this),d=jQuery.extend({classname:"lifestream",feedloaded:null,limit:10,list:[]},b),e={count:d.list.length,items:[]},f=jQuery.extend(!0,{},d),g=function(b){a.merge(e.items,b),e.items.sort(function(a,b){return b.date-a.date});var f=e.items,g=f.length<d.limit?f.length:d.limit,h=0,i,j=a('<ul class="'+d.classname+'"/>');for(;h<g;h++)i=f[h],i.html&&a('<li class="'+d.classname+"-"+i.config.service+'">').data("name",i.config.service).data("url",i.url||"#").data("time",i.date).append(i.html).appendTo(j);c.html(j),a.isFunction(d.feedloaded)&&d.feedloaded()},h=function(){var b=0,c=d.list.length;delete f.list;for(;b<c;b++){var e=d.list[b];a.fn.lifestream.feeds[e.service]&&a.isFunction(a.fn.lifestream.feeds[e.service])&&e.user&&(e._settings=f,a.fn.lifestream.feeds[e.service](e,g))}};jQuery.tmpl?h():jQuery.getScript("https://raw.github.com/jquery/jquery-tmpl/master/jquery.tmpl.min.js",h)})},a.fn.lifestream.createYqlUrl=function(a){return"http://query.yahooapis.com/v1/public/yql?q=__QUERY__&env=store://datatables.org/alltableswithkeys&format=json".replace("__QUERY__",encodeURIComponent(a))},a.fn.lifestream.feeds=a.fn.lifestream.feeds||{}})(jQuery),function(a){a.fn.lifestream.feeds.bitbucket=function(b,c){var d=a.extend({},{commit:'<a href="http://bitbucket.org/${owner}/${name}/changeset/${node}/">committed</a> at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',pullrequest_fulfilled:'fulfilled a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',pullrequest_rejected:'rejected a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',pullrequest_created:'created a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',create:'created a new project at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',fork:'forked <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>'},b.template),e=["commit","pullrequest_fulfilled","pullrequest_rejected","pullrequest_created","create","fork"],f=function(b){if(a.inArray(b.event,e)!==-1&&b.repository)return b.event==="commit"?a.tmpl(d.commit,{owner:b.repository.owner,name:b.repository.name,node:b.node}):a.tmpl(d[b.event],{owner:b.repository.owner,name:b.repository.name})},g=function(c){var d=[],e=0;return c.query&&c.query.count&&c.query.count>0&&a.each(c.query.results.json,function(){d.push({date:new Date(this.events.created_on.replace(/-/g,"/")),config:b,html:f(this.events)})}),d};return a.ajax({url:a.fn.lifestream.createYqlUrl('select events.event,events.node, events.created_on,events.repository.name, events.repository.owner from json where url = "https://api.bitbucket.org/1.0/users/'+b.user+'/events/"'),dataType:"jsonp",success:function(a){c(g(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.bitly=function(b,c){var d=a.extend({},{created:'created URL <a href="${short_url}" title="${title}">${short_url}</a>'},b.template);return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from json where url="http://bitly.com/u/'+b.user+'.json"'),dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e.query&&e.query.count&&e.query.results.json&&e.query.results.json.data){list=e.query.results.json.data,h=list.length;for(;g<h;g++){var i=list[g];f.push({date:new Date(i.created*1e3),config:b,html:a.tmpl(d.created,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.blogger=function(b,c){var d=a.extend({},{posted:'posted <a href="${origLink}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i,j,k;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.feed.entry){f=c.query.results.feed.entry,h=f.length;for(;g<h;g++){i=f[g];if(!i.origLink){j=0,k=i.link.length;for(;j<k;j++)i.link[j].rel==="alternate"&&(i.origLink=i.link[j].href)}i.origLink&&(i.title.content&&(i.title=i.title.content),e.push({date:new Date(i.published),config:b,html:a.tmpl(d.posted,i)}))}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://'+b.user+'.blogspot.com/feeds/posts/default"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.dailymotion=function(b,c){var d=a.extend({},{uploaded:'uploaded a video <a href="${link}">${title[0]}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.uploaded,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.dailymotion.com/rss/user/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.delicious=function(b,c){var d=a.extend({},{bookmarked:'bookmarked <a href="${u}">${d}</a>'},b.template);return a.ajax({url:"http://feeds.delicious.com/v2/json/"+b.user,dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.length&&e.length>0){h=e.length;for(;g<h;g++){var i=e[g];f.push({date:new Date(i.dt),config:b,html:a.tmpl(d.bookmarked,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.deviantart=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template);return a.ajax({url:a.fn.lifestream.createYqlUrl('select title,link,pubDate from rss where url="http://backend.deviantart.com/rss.xml?q=gallery%3A'+encodeURIComponent(b.user)+"&type=deviation"+'" | unique(field="title")'),dataType:"jsonp",success:function(e){var f=[],g,h,i=0,j;if(e.query&&e.query.count>0){g=e.query.results.item,j=g.length;for(;i<j;i++)h=g[i],f.push({date:new Date(h.pubDate),config:b,html:a.tmpl(d.posted,h)})}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.dribbble=function(b,c){var d=a.extend({},{posted:'posted a shot <a href="${url}">${title}</a>'},b.template);return a.ajax({url:"http://api.dribbble.com/players/"+b.user+"/shots",dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.total){h=e.shots.length;for(;g<h;g++){var i=e.shots[g];f.push({date:new Date(i.created_at),config:b,html:a.tmpl(d.posted,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.facebook_page=function(b,c){var d=a.extend({},{wall_post:'post on wall <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++){var i=f[g];a.trim(i.title)&&e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.wall_post,i)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="www.facebook.com/feeds/page.php?id='+b.user+'&format=rss20"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.flickr=function(b,c){var d=a.extend({},{posted:'posted a photo <a href="${link}">${title}</a>'},b.template);return a.ajax({url:"http://api.flickr.com/services/feeds/photos_public.gne?id="+b.user+"&lang=en-us&format=json",dataType:"jsonp",jsonp:"jsoncallback",success:function(e){var f=[],g=0,h;if(e&&e.items&&e.items.length>0){h=e.items.length;for(;g<h;g++){var i=e.items[g];f.push({date:new Date(i.published),config:b,html:a.tmpl(d.posted,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.foomark=function(b,c){var d=a.extend({},{bookmarked:'bookmarked <a href="${url}">${url}</a>'},b.template);return a.ajax({url:"http://api.foomark.com/urls/list/",data:{format:"jsonp",username:b.user},dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.length&&e.length>0){h=e.length;for(;g<h;g++){var i=e[g];f.push({date:new Date(i.created_at.replace(/-/g,"/")),config:b,html:a.tmpl(d.bookmarked,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.formspring=function(b,c){var d=a.extend({},{answered:'answered a question <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.answered,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.formspring.me/profile/'+b.user+'.rss"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.forrst=function(b,c){var d=a.extend({},{posted:'posted a ${post_type} <a href="${post_url}">${title}</a>'},b.template);return a.ajax({url:"http://forrst.com/api/v2/users/posts?username="+b.user,dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.resp.length&&e.resp.length>0){h=e.resp.length;for(;g<h;g++){var i=e.resp[g];f.push({date:new Date(i.created_at.replace(" ","T")),config:b,html:a.tmpl(d.posted,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.foursquare=function(b,c){var d=a.extend({},{checkedin:'checked in @ <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f=0,g;if(c.query&&c.query.count&&c.query.count>0){g=c.query.count;for(;f<g;f++){var h=c.query.results.item[f];e.push({date:new Date(h.pubDate),config:b,html:a.tmpl(d.checkedin,h)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from rss where url="https://feeds.foursquare.com/history/'+b.user+'.rss"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.github=function(b,c){var d=a.extend({},{pushed:'<a href="${status.url}" title="{{if title}}${title} by ${author} {{/if}}">pushed</a> to <a href="http://github.com/${repo}/tree/${branchname}">${branchname}</a> at <a href="http://github.com/${repo}">${repo}</a>',gist:'<a href="${status.payload.url}" title="${status.payload.desc || ""}">${status.payload.name}</a>',commented:'commented on <a href="${status.url}">${what}</a> on <a href="http://github.com/${repo}">${repo}</a>',pullrequest:'${status.payload.action} <a href="${status.url}">pull request #${status.payload.number}</a> on <a href="http://github.com/${repo}">${repo}</a>',created:'created ${status.payload.ref_type || status.payload.object} <a href="${status.url}">${status.payload.ref || status.payload.object_name}</a> for <a href="http://github.com/${repo}">${repo}</a>',createdglobal:'created ${status.payload.object} <a href="${status.url}">${title}</a>',deleted:'deleted ${status.payload.ref_type} ${status.payload.ref} at <a href="http://github.com/${status.repository.owner}/${status.repository.name}">${status.repository.owner}/${status.repository.name}</a>'},b.template),e=function(a){return a.payload.repo||(a.repository?a.repository.owner+"/"+a.repository.name:null)||a.url.split("/")[3]+"/"+a.url.split("/")[4]},f=function(b){var c,f,g;if(b.type==="PushEvent")return f=b.payload&&b.payload.shas&&b.payload.shas.json&&b.payload.shas.json[2],c=e(b),a.tmpl(d.pushed,{status:b,title:f,author:f?b.payload.shas.json[3]:"",branchname:b.payload.ref.split("/")[2],repo:e(b)});if(b.type==="GistEvent")return a.tmpl(d.gist,{status:b});if(b.type==="CommitCommentEvent")return g="commit "+b.url.split("commit/")[1].split("#")[0].substring(0,7),c=e(b),a.tmpl(d.commented,{what:g,repo:c,status:b});if(b.type==="IssueCommentEvent")return g="issue "+b.url.split("issues/")[1].split("#")[0],c=e(b),a.tmpl(d.commented,{what:g,repo:c,status:b});if(b.type==="PullRequestEvent")return c=e(b),a.tmpl(d.pullrequest,{repo:c,status:b});if(b.type==="CreateEvent"&&(b.payload.ref_type==="tag"||b.payload.ref_type==="branch"||b.payload.object==="tag"))return c=e(b),a.tmpl(d.created,{repo:c,status:b});if(b.type==="CreateEvent")return f=b.payload.object_name?b.payload.object_name==="null"?b.payload.name:b.payload.object_name:e(b),a.tmpl(d.createdglobal,{title:f,status:b});if(b.type==="DeleteEvent")return a.tmpl(d.deleted,{status:b})},g=function(a){var c=[],d=0,e;if(a.query&&a.query.count&&a.query.count>0){e=a.query.count;for(;d<e;d++){var g=a.query.results.json[d].json;c.push({date:new Date(g.created_at),config:b,html:f(g),url:"http://github.com/"+b.user})}}return c};return a.ajax({url:a.fn.lifestream.createYqlUrl('select json.repository.owner,json.repository.name, json.payload, json.type,json.url, json.created_at from json where url="http://github.com/'+b.user+'.json"'),dataType:"jsonp",success:function(a){c(g(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.googlereader=function(b,c){var d=a.extend({},{starred:'shared <a href="{{if link.href}}${link.href}{{else}}${source.link.href}{{/if}}">${title.content}</a>'},b.template),e=function(c){var e=[],f,g=0,h;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.feed.entry,h=f.length;for(;g<h;g++){var i=f[g];e.push({url:"http://www.google.com/reader/shared"+b.user,date:new Date(parseInt(i["crawl-timestamp-msec"],10)),config:b,html:a.tmpl(d.starred,i)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="www.google.com/reader/public/atom/user%2F'+b.user+'%2Fstate%2Fcom.google%2Fbroadcast"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.instapaper=function(b,c){var d=a.extend({},{loved:'loved <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.loved,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.instapaper.com/starred/rss/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.iusethis=function(b,c){var d=a.extend({},{global:'${action} <a href="${link}">${what}</a> on (${os})'},b.template),e=function(c){var e=[],f,g,h,i,j,k=0,l,m,n,o,p,q,r,s=["iPhone","OS X","Windows"];if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss){l=c.query.results.rss.length,o=["started using","stopped using","stopped loving","Downloaded","commented on","updated entry for","started loving","registered"],j=o.length;for(;k<l;k++){r=s[k],f=c.query.results.rss[k].channel.item,g=0,h=f.length;for(;g<h;g++){m=f[g],n=m.title.replace(b.user+" ",""),i=0;for(;i<j;i++)if(n.indexOf(o[i])>-1){p=o[i];break}q=n.split(p),e.push({date:new Date(m.pubDate),config:b,html:a.tmpl(d.global,{action:p.toLowerCase(),link:m.link,what:q[1],os:r})})}}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://iphone.iusethis.com/user/feed.rss/'+b.user+'" or '+'url="http://osx.iusethis.com/user/feed.rss/'+b.user+'" or '+'url="http://win.iusethis.com/user/feed.rss/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.lastfm=function(b,c){var d=a.extend({},{loved:'listened to <a href="${artist.mbid}">${artist.content}</a> - <a href="${url}">${name}</a>'},b.template),e=function(c){var e=[],f,g=0,h;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.recenttracks&&c.query.results.recenttracks.track){f=c.query.results.recenttracks.track,h=f.length;for(;g<h;g++){var i=f[g];e.push({date:new Date(parseInt(i.date.uts*1e3,10)),config:b,html:a.tmpl(d.loved,i)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://ws.audioscrobbler.com/2.0/user/'+b.user+'/recenttracks.xml"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.mlkshk=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://mlkshk.com/user/'+b.user+'/rss"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.picplz=function(b,c){var d=a.extend({},{uploaded:'uploaded <a href="${url}">${title}</a>'},b.template);return a.ajax({url:"http://picplz.com/api/v2/user.json?username="+b.user+"&include_pics=1",dataType:"jsonp",success:function(e){var f=[],g=0,h,i;i=e.value.users[0].pics;if(i&&i.length&&i.length>0){h=i.length;for(;g<h;g++){var j=i[g];f.push({date:new Date(j.date*1e3),config:b,html:a.tmpl(d.uploaded,{url:j.pic_files["640r"].img_url,title:j.caption||j.id})})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.pinboard=function(b,c){var d=a.extend({},{bookmarked:'bookmarked <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.RDF.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.date),config:b,html:a.tmpl(d.bookmarked,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://feeds.pinboard.in/rss/u:'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.posterous=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://'+b.user+'.posterous.com/rss.xml"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.reddit=function(b,c){var d=a.extend({},{commented:'<a href="http://www.reddit.com/r/${item.data.subreddit}/comments/${item.data.link_id.substring(3)}/u/${item.data.name.substring(3)}?context=3">commented (${score})</a> in <a href="http://www.reddit.com/r/${item.data.subreddit}">${item.data.subreddit}</a>',created:'<a href="http://www.reddit.com${item.data.permalink}">created new thread (${score})</a> in <a href="http://www.reddit.com/r/${item.data.subreddit}">${item.data.subreddit}</a>'},b.template),e=function(b){var c=b.data.ups-b.data.downs,e={item:b,score:c>0?"+"+c:c};if(b.kind==="t1")return a.tmpl(d.commented,e);if(b.kind==="t3")return a.tmpl(d.created,e)},f=function(a){return new Date(a*1e3)};return a.ajax({url:"http://www.reddit.com/user/"+b.user+".json",dataType:"jsonp",jsonp:"jsonp",success:function(a){var d=[],g=0,h;if(a&&a.data&&a.data.children&&a.data.children.length>0){h=a.data.children.length;for(;g<h;g++){var i=a.data.children[g];d.push({date:f(i.data.created_utc),config:b,html:e(i),url:"http://reddit.com/user/"+b.user})}}c(d)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.slideshare=function(b,c){var d=a.extend({},{uploaded:'uploaded a presentation <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.uploaded,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.slideshare.net/rss/user/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.snipplr=function(b,c){var d=a.extend({},{posted:'posted a snippet <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e};a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://snipplr.com/rss/users/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}})}}(jQuery),function(a){a.fn.lifestream.feeds.stackoverflow=function(b,c){var d=a.extend({},{global:'<a href="${link}">${text}</a> - ${title}'},b.template),e=function(a){var c="",d="",e="",f="http://stackoverflow.com/users/"+b.user,g="http://stackoverflow.com/questions/";if(a.timeline_type==="badge")c="was "+a.action+" the '"+a.description+"' badge",d=a.detail,e=f+"?tab=reputation";else if(a.timeline_type==="comment")c="commented on",d=a.description,e=g+a.post_id;else if(a.timeline_type==="revision"||a.timeline_type==="accepted"||a.timeline_type==="askoranswered")c=a.timeline_type==="askoranswered"?a.action:a.action+" "+a.post_type,d=a.detail||a.description||"",e=g+a.post_id;return{link:e,title:d,text:c}},f=function(a){return new Date(a*1e3)};return a.ajax({url:"http://api.stackoverflow.com/1.1/users/"+b.user+"/timeline?"+"jsonp",dataType:"jsonp",jsonp:"jsonp",success:function(g){var h=[],i=0,j;if(g&&g.total&&g.total>0&&g.user_timelines){j=g.user_timelines.length;for(;i<j;i++){var k=g.user_timelines[i];h.push({date:f(k.creation_date),config:b,html:a.tmpl(d.global,e(k))})}}c(h)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.tumblr=function(b,c){var d=a.extend({},{posted:'posted a ${type} <a href="${url}">${title}</a>'},b.template),e=function(b){switch(b.type){case"photo":var c=b["photo-url"];return a('<img width="75" height="75"/>').attr({src:c[c.length-1].content,title:h(b),alt:h(b)}).wrap("<div/>").parent().html();case"video":var d=b["video-player"],e=d[d.length-1].content;if(e.match(/<\s*script/))return null;return e;case"audio":return b["audio-player"]+" "+a("<div/>").text(h(b)).html();default:return null}},f=function(b,c){return a(b[c]).filter(":not(:empty):first").text()},g=function(a){var b;switch(a.type){case"regular":return a["regular-title"]||f(a,"regular-body");case"link":return b=a["link-text"]||f(a,"link-description"),b===""&&(b=a["link-url"]),b;case"video":return f(a,"video-caption");case"audio":return f(a,"audio-caption");case"photo":return f(a,"photo-caption");case"quote":return'"'+a["quote-text"].replace(/<.+?>/g," ").trim()+'"';case"conversation":return b=a["conversation-title"],b||(b=a.conversation.line,typeof b!="string"&&(b=line[0].label+" "+line[0].content+" ....")),b;case"answer":return a.question;default:return a.type}},h=function(a){var b=g(a)||"";return b.replace(/<.+?>/gi," ")},i=function(b,c){return{date:new Date(c.date),config:b,html:a.tmpl(d.posted,{type:c.type.replace("regular","blog entry"),url:c.url,image:e(c),title:h(c)})}},j=function(c){var d=[],e=0,f,g;if(c.query&&c.query.count&&c.query.count>0)if(a.isArray(c.query.results.posts.post)){f=c.query.results.posts.post.length;for(;e<f;e++)g=c.query.results.posts.post[e],d.push(i(b,g))}else a.isPlainObject(c.query.results.posts.post)&&d.push(i(b,c.query.results.posts.post));return d};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from tumblr.posts where username="'+b.user+'"'),dataType:"jsonp",success:function(a){c(j(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.twitter=function(b,c){var d=a.extend({},{posted:"{{html tweet}}"},b.template),e=function(a){var b=function(a){return a.replace(/[a-z]+:\/\/[a-z0-9-_]+\.[a-z0-9-_:~%&\?\/.=]+[^:\.,\)\s*$]/ig,function(a){return'<a href="'+a+'">'+(a.length>25?a.substr(0,24)+"...":a)+"</a>"})},c=function(a){return a.replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15})/g,function(a,b,c){return b+'<a href="http://twitter.com/'+c+'">@'+c+"</a>"})},d=function(a){return a.replace(/(^|[^\w'"]+)\#([a-zA-Z0-9_]+)/g,function(a,b,c){return b+'<a href="http://search.twitter.com/search?q=%23'+c+'">#'+c+"</a>"})};return d(c(b(a)))},f=function(c){var f=[],g=0,h,i;if(c&&c.length>0){h=c.length;for(;g<h;g++)i=c[g],f.push({date:new Date(i.created_at),config:b,html:a.tmpl(d.posted,{tweet:e(i.text)}),url:"http://twitter.com/#!/"+b.user})}return f};return a.ajax({url:"https://api.twitter.com/1/statuses/user_timeline.json",data:{screen_name:b.user,include_rts:1},dataType:"jsonp",success:function(a){c(f(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.vimeo=function(b,c){var d=a.extend({},{posted:'posted <a href="${url}" title="${description}">${title}</a>'},b.template),e=function(c){var e=[],f=0,g,h;if(c){g=c.length;for(;f<g;f++)h=c[f],e.push({date:new Date(h.upload_date.replace(" ","T")),config:b,html:a.tmpl(d.posted,{url:h.url,description:h.description.replace(/"/g,"'").replace(/<.+?>/gi,""),title:h.title})})}return e};return a.ajax({url:"http://vimeo.com/api/v2/"+b.user+"/videos.json",dataType:"jsonp",crossDomain:!0,success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.wordpress=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e},f=b.user.indexOf("http://")===0?b.user+"/feed":"http://"+b.user+".wordpress.com/feed";return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="'+f+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.youtube=function(b,c){var d=a.extend({},{favorited:'favorited <a href="${video.player.default}" title="${video.description}">${video.title}</a>'},b.template),e=function(c){var e=[],f=0,g,h;if(c.data&&c.data.items){g=c.data.items.length;for(;f<g;f++)h=c.data.items[f],e.push({date:new Date(h.created),config:b,html:a.tmpl(d.favorited,h)})}return e};return a.ajax({url:"http://gdata.youtube.com/feeds/api/users/"+b.user+"/favorites?v=2&alt=jsonc",dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery)
+ *//*globals jQuery, $ */(function(a){a.fn.lifestream=function(b){return this.each(function(){var c=a(this),d=jQuery.extend({classname:"lifestream",feedloaded:null,limit:10,list:[]},b),e={count:d.list.length,items:[]},f=jQuery.extend(!0,{},d),g=function(b){a.merge(e.items,b),e.items.sort(function(a,b){return b.date-a.date});var f=e.items,g=f.length<d.limit?f.length:d.limit,h=0,i,j=a('<ul class="'+d.classname+'"/>');for(;h<g;h++)i=f[h],i.html&&a('<li class="'+d.classname+"-"+i.config.service+'">').data("name",i.config.service).data("url",i.url||"#").data("time",i.date).append(i.html).appendTo(j);c.html(j),a.isFunction(d.feedloaded)&&d.feedloaded()},h=function(){var b=0,c=d.list.length;delete f.list;for(;b<c;b++){var e=d.list[b];a.fn.lifestream.feeds[e.service]&&a.isFunction(a.fn.lifestream.feeds[e.service])&&e.user&&(e._settings=f,a.fn.lifestream.feeds[e.service](e,g))}};jQuery.tmpl?h():jQuery.getScript("https://raw.github.com/jquery/jquery-tmpl/master/jquery.tmpl.min.js",h)})},a.fn.lifestream.createYqlUrl=function(a){return"http://query.yahooapis.com/v1/public/yql?q=__QUERY__&env=store://datatables.org/alltableswithkeys&format=json".replace("__QUERY__",encodeURIComponent(a))},a.fn.lifestream.feeds=a.fn.lifestream.feeds||{}})(jQuery),function(a){a.fn.lifestream.feeds.bitbucket=function(b,c){var d=a.extend({},{commit:'<a href="http://bitbucket.org/${owner}/${name}/changeset/${node}/">committed</a> at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',pullrequest_fulfilled:'fulfilled a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',pullrequest_rejected:'rejected a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',pullrequest_created:'created a pull request at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',create:'created a new project at <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>',fork:'forked <a href="http://bitbucket.org/${owner}/${name}/">${owner}/${name}</a>'},b.template),e=["commit","pullrequest_fulfilled","pullrequest_rejected","pullrequest_created","create","fork"],f=function(b){if(a.inArray(b.event,e)!==-1&&b.repository)return b.event==="commit"?a.tmpl(d.commit,{owner:b.repository.owner,name:b.repository.name,node:b.node}):a.tmpl(d[b.event],{owner:b.repository.owner,name:b.repository.name})},g=function(c){var d=[],e=0;return c.query&&c.query.count&&c.query.count>0&&a.each(c.query.results.json,function(){d.push({date:new Date(this.events.created_on.replace(/-/g,"/")),config:b,html:f(this.events)})}),d};return a.ajax({url:a.fn.lifestream.createYqlUrl('select events.event,events.node, events.created_on,events.repository.name, events.repository.owner from json where url = "https://api.bitbucket.org/1.0/users/'+b.user+'/events/"'),dataType:"jsonp",success:function(a){c(g(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.bitly=function(b,c){var d=a.extend({},{created:'created URL <a href="${short_url}" title="${title}">${short_url}</a>'},b.template);return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from json where url="http://bitly.com/u/'+b.user+'.json"'),dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e.query&&e.query.count&&e.query.results.json&&e.query.results.json.data){list=e.query.results.json.data,h=list.length;for(;g<h;g++){var i=list[g];f.push({date:new Date(i.created*1e3),config:b,html:a.tmpl(d.created,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.blogger=function(b,c){var d=a.extend({},{posted:'posted <a href="${origLink}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i,j,k;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.feed.entry){f=c.query.results.feed.entry,h=f.length;for(;g<h;g++){i=f[g];if(!i.origLink){j=0,k=i.link.length;for(;j<k;j++)i.link[j].rel==="alternate"&&(i.origLink=i.link[j].href)}i.origLink&&(i.title.content&&(i.title=i.title.content),e.push({date:new Date(i.published),config:b,html:a.tmpl(d.posted,i)}))}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://'+b.user+'.blogspot.com/feeds/posts/default"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.dailymotion=function(b,c){var d=a.extend({},{uploaded:'uploaded a video <a href="${link}">${title[0]}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.uploaded,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.dailymotion.com/rss/user/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.delicious=function(b,c){var d=a.extend({},{bookmarked:'bookmarked <a href="${u}">${d}</a>'},b.template);return a.ajax({url:"http://feeds.delicious.com/v2/json/"+b.user,dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.length&&e.length>0){h=e.length;for(;g<h;g++){var i=e[g];f.push({date:new Date(i.dt),config:b,html:a.tmpl(d.bookmarked,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.deviantart=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template);return a.ajax({url:a.fn.lifestream.createYqlUrl('select title,link,pubDate from rss where url="http://backend.deviantart.com/rss.xml?q=gallery%3A'+encodeURIComponent(b.user)+"&type=deviation"+'" | unique(field="title")'),dataType:"jsonp",success:function(e){var f=[],g,h,i=0,j;if(e.query&&e.query.count>0){g=e.query.results.item,j=g.length;for(;i<j;i++)h=g[i],f.push({date:new Date(h.pubDate),config:b,html:a.tmpl(d.posted,h)})}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.digg=function(b,c){var d=a.extend({},{comment:'commented on <a href="${url}" title="${title}">${title}</a>',digg:'dugg <a href="${url}" title="${title}">${title}</a>',submission:'submitted <a href="${url}" title="${title}">${title}</a>'},b.template);return a.ajax({url:"http://services.digg.com/2.0/user.getActivity?username="+b.user+"&type=javascript",dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.stories){h=e.stories.length;for(;g<h;g++){var i=e.stories[g],j=i.activity.length;for(l=0;l<j;l++){var k;i.activity[l]==="submission"||i.promote_date===null?k=i.date_created:k=i.promote_date,f.push({date:new Date(k*1e3),config:b,html:a.tmpl(d[i.activity[l]],i)})}}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.dribbble=function(b,c){var d=a.extend({},{posted:'posted a shot <a href="${url}">${title}</a>'},b.template);return a.ajax({url:"http://api.dribbble.com/players/"+b.user+"/shots",dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.total){h=e.shots.length;for(;g<h;g++){var i=e.shots[g];f.push({date:new Date(i.created_at),config:b,html:a.tmpl(d.posted,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.facebook_page=function(b,c){var d=a.extend({},{wall_post:'post on wall <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++){var i=f[g];a.trim(i.title)&&e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.wall_post,i)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="www.facebook.com/feeds/page.php?id='+b.user+'&format=rss20"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.flickr=function(b,c){var d=a.extend({},{posted:'posted a photo <a href="${link}">${title}</a>'},b.template);return a.ajax({url:"http://api.flickr.com/services/feeds/photos_public.gne?id="+b.user+"&lang=en-us&format=json",dataType:"jsonp",jsonp:"jsoncallback",success:function(e){var f=[],g=0,h;if(e&&e.items&&e.items.length>0){h=e.items.length;for(;g<h;g++){var i=e.items[g];f.push({date:new Date(i.published),config:b,html:a.tmpl(d.posted,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.foomark=function(b,c){var d=a.extend({},{bookmarked:'bookmarked <a href="${url}">${url}</a>'},b.template);return a.ajax({url:"http://api.foomark.com/urls/list/",data:{format:"jsonp",username:b.user},dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.length&&e.length>0){h=e.length;for(;g<h;g++){var i=e[g];f.push({date:new Date(i.created_at.replace(/-/g,"/")),config:b,html:a.tmpl(d.bookmarked,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.formspring=function(b,c){var d=a.extend({},{answered:'answered a question <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.answered,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.formspring.me/profile/'+b.user+'.rss"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.forrst=function(b,c){var d=a.extend({},{posted:'posted a ${post_type} <a href="${post_url}">${title}</a>'},b.template);return a.ajax({url:"http://forrst.com/api/v2/users/posts?username="+b.user,dataType:"jsonp",success:function(e){var f=[],g=0,h;if(e&&e.resp.length&&e.resp.length>0){h=e.resp.length;for(;g<h;g++){var i=e.resp[g];f.push({date:new Date(i.created_at.replace(" ","T")),config:b,html:a.tmpl(d.posted,i)})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.foursquare=function(b,c){var d=a.extend({},{checkedin:'checked in @ <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f=0,g;if(c.query&&c.query.count&&c.query.count>0){g=c.query.count;for(;f<g;f++){var h=c.query.results.item[f];e.push({date:new Date(h.pubDate),config:b,html:a.tmpl(d.checkedin,h)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from rss where url="https://feeds.foursquare.com/history/'+b.user+'.rss"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.github=function(b,c){var d=a.extend({},{pushed:'<a href="${status.url}" title="{{if title}}${title} by ${author} {{/if}}">pushed</a> to <a href="http://github.com/${repo}/tree/${branchname}">${branchname}</a> at <a href="http://github.com/${repo}">${repo}</a>',gist:'<a href="${status.payload.url}" title="${status.payload.desc || ""}">${status.payload.name}</a>',commented:'commented on <a href="${status.url}">${what}</a> on <a href="http://github.com/${repo}">${repo}</a>',pullrequest:'${status.payload.action} <a href="${status.url}">pull request #${status.payload.number}</a> on <a href="http://github.com/${repo}">${repo}</a>',created:'created ${status.payload.ref_type || status.payload.object} <a href="${status.url}">${status.payload.ref || status.payload.object_name}</a> for <a href="http://github.com/${repo}">${repo}</a>',createdglobal:'created ${status.payload.object} <a href="${status.url}">${title}</a>',deleted:'deleted ${status.payload.ref_type} ${status.payload.ref} at <a href="http://github.com/${status.repository.owner}/${status.repository.name}">${status.repository.owner}/${status.repository.name}</a>'},b.template),e=function(a){return a.payload.repo||(a.repository?a.repository.owner+"/"+a.repository.name:null)||a.url.split("/")[3]+"/"+a.url.split("/")[4]},f=function(b){var c,f,g;if(b.type==="PushEvent")return f=b.payload&&b.payload.shas&&b.payload.shas.json&&b.payload.shas.json[2],c=e(b),a.tmpl(d.pushed,{status:b,title:f,author:f?b.payload.shas.json[3]:"",branchname:b.payload.ref.split("/")[2],repo:e(b)});if(b.type==="GistEvent")return a.tmpl(d.gist,{status:b});if(b.type==="CommitCommentEvent")return g="commit "+b.url.split("commit/")[1].split("#")[0].substring(0,7),c=e(b),a.tmpl(d.commented,{what:g,repo:c,status:b});if(b.type==="IssueCommentEvent")return g="issue "+b.url.split("issues/")[1].split("#")[0],c=e(b),a.tmpl(d.commented,{what:g,repo:c,status:b});if(b.type==="PullRequestEvent")return c=e(b),a.tmpl(d.pullrequest,{repo:c,status:b});if(b.type==="CreateEvent"&&(b.payload.ref_type==="tag"||b.payload.ref_type==="branch"||b.payload.object==="tag"))return c=e(b),a.tmpl(d.created,{repo:c,status:b});if(b.type==="CreateEvent")return f=b.payload.object_name?b.payload.object_name==="null"?b.payload.name:b.payload.object_name:e(b),a.tmpl(d.createdglobal,{title:f,status:b});if(b.type==="DeleteEvent")return a.tmpl(d.deleted,{status:b})},g=function(a){var c=[],d=0,e;if(a.query&&a.query.count&&a.query.count>0){e=a.query.count;for(;d<e;d++){var g=a.query.results.json[d].json;c.push({date:new Date(g.created_at),config:b,html:f(g),url:"http://github.com/"+b.user})}}return c};return a.ajax({url:a.fn.lifestream.createYqlUrl('select json.repository.owner,json.repository.name, json.payload, json.type,json.url, json.created_at from json where url="http://github.com/'+b.user+'.json"'),dataType:"jsonp",success:function(a){c(g(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.googlereader=function(b,c){var d=a.extend({},{starred:'shared <a href="{{if link.href}}${link.href}{{else}}${source.link.href}{{/if}}">${title.content}</a>'},b.template),e=function(c){var e=[],f,g=0,h;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.feed.entry,h=f.length;for(;g<h;g++){var i=f[g];e.push({url:"http://www.google.com/reader/shared"+b.user,date:new Date(parseInt(i["crawl-timestamp-msec"],10)),config:b,html:a.tmpl(d.starred,i)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="www.google.com/reader/public/atom/user%2F'+b.user+'%2Fstate%2Fcom.google%2Fbroadcast"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.instapaper=function(b,c){var d=a.extend({},{loved:'loved <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.loved,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.instapaper.com/starred/rss/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.iusethis=function(b,c){var d=a.extend({},{global:'${action} <a href="${link}">${what}</a> on (${os})'},b.template),e=function(c){var e=[],f,g,h,i,j,k=0,l,m,n,o,p,q,r,s=["iPhone","OS X","Windows"];if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss){l=c.query.results.rss.length,o=["started using","stopped using","stopped loving","Downloaded","commented on","updated entry for","started loving","registered"],j=o.length;for(;k<l;k++){r=s[k],f=c.query.results.rss[k].channel.item,g=0,h=f.length;for(;g<h;g++){m=f[g],n=m.title.replace(b.user+" ",""),i=0;for(;i<j;i++)if(n.indexOf(o[i])>-1){p=o[i];break}q=n.split(p),e.push({date:new Date(m.pubDate),config:b,html:a.tmpl(d.global,{action:p.toLowerCase(),link:m.link,what:q[1],os:r})})}}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://iphone.iusethis.com/user/feed.rss/'+b.user+'" or '+'url="http://osx.iusethis.com/user/feed.rss/'+b.user+'" or '+'url="http://win.iusethis.com/user/feed.rss/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.lastfm=function(b,c){var d=a.extend({},{loved:'listened to <a href="${artist.mbid}">${artist.content}</a> - <a href="${url}">${name}</a>'},b.template),e=function(c){var e=[],f,g=0,h;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.recenttracks&&c.query.results.recenttracks.track){f=c.query.results.recenttracks.track,h=f.length;for(;g<h;g++){var i=f[g];e.push({date:new Date(parseInt(i.date.uts*1e3,10)),config:b,html:a.tmpl(d.loved,i)})}}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://ws.audioscrobbler.com/2.0/user/'+b.user+'/recenttracks.xml"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.mlkshk=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://mlkshk.com/user/'+b.user+'/rss"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.picplz=function(b,c){var d=a.extend({},{uploaded:'uploaded <a href="${url}">${title}</a>'},b.template);return a.ajax({url:"http://picplz.com/api/v2/user.json?username="+b.user+"&include_pics=1",dataType:"jsonp",success:function(e){var f=[],g=0,h,i;i=e.value.users[0].pics;if(i&&i.length&&i.length>0){h=i.length;for(;g<h;g++){var j=i[g];f.push({date:new Date(j.date*1e3),config:b,html:a.tmpl(d.uploaded,{url:j.pic_files["640r"].img_url,title:j.caption||j.id})})}}c(f)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.pinboard=function(b,c){var d=a.extend({},{bookmarked:'bookmarked <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.RDF.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.date),config:b,html:a.tmpl(d.bookmarked,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://feeds.pinboard.in/rss/u:'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.posterous=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://'+b.user+'.posterous.com/rss.xml"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.reddit=function(b,c){var d=a.extend({},{commented:'<a href="http://www.reddit.com/r/${item.data.subreddit}/comments/${item.data.link_id.substring(3)}/u/${item.data.name.substring(3)}?context=3">commented (${score})</a> in <a href="http://www.reddit.com/r/${item.data.subreddit}">${item.data.subreddit}</a>',created:'<a href="http://www.reddit.com${item.data.permalink}">created new thread (${score})</a> in <a href="http://www.reddit.com/r/${item.data.subreddit}">${item.data.subreddit}</a>'},b.template),e=function(b){var c=b.data.ups-b.data.downs,e={item:b,score:c>0?"+"+c:c};if(b.kind==="t1")return a.tmpl(d.commented,e);if(b.kind==="t3")return a.tmpl(d.created,e)},f=function(a){return new Date(a*1e3)};return a.ajax({url:"http://www.reddit.com/user/"+b.user+".json",dataType:"jsonp",jsonp:"jsonp",success:function(a){var d=[],g=0,h;if(a&&a.data&&a.data.children&&a.data.children.length>0){h=a.data.children.length;for(;g<h;g++){var i=a.data.children[g];d.push({date:f(i.data.created_utc),config:b,html:e(i),url:"http://reddit.com/user/"+b.user})}}c(d)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.slideshare=function(b,c){var d=a.extend({},{uploaded:'uploaded a presentation <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.uploaded,i)})}return e};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://www.slideshare.net/rss/user/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.snipplr=function(b,c){var d=a.extend({},{posted:'posted a snippet <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e};a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="http://snipplr.com/rss/users/'+b.user+'"'),dataType:"jsonp",success:function(a){c(e(a))}})}}(jQuery),function(a){a.fn.lifestream.feeds.stackoverflow=function(b,c){var d=a.extend({},{global:'<a href="${link}">${text}</a> - ${title}'},b.template),e=function(a){var c="",d="",e="",f="http://stackoverflow.com/users/"+b.user,g="http://stackoverflow.com/questions/";if(a.timeline_type==="badge")c="was "+a.action+" the '"+a.description+"' badge",d=a.detail,e=f+"?tab=reputation";else if(a.timeline_type==="comment")c="commented on",d=a.description,e=g+a.post_id;else if(a.timeline_type==="revision"||a.timeline_type==="accepted"||a.timeline_type==="askoranswered")c=a.timeline_type==="askoranswered"?a.action:a.action+" "+a.post_type,d=a.detail||a.description||"",e=g+a.post_id;return{link:e,title:d,text:c}},f=function(a){return new Date(a*1e3)};return a.ajax({url:"http://api.stackoverflow.com/1.1/users/"+b.user+"/timeline?"+"jsonp",dataType:"jsonp",jsonp:"jsonp",success:function(g){var h=[],i=0,j;if(g&&g.total&&g.total>0&&g.user_timelines){j=g.user_timelines.length;for(;i<j;i++){var k=g.user_timelines[i];h.push({date:f(k.creation_date),config:b,html:a.tmpl(d.global,e(k))})}}c(h)}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.tumblr=function(b,c){var d=a.extend({},{posted:'posted a ${type} <a href="${url}">${title}</a>'},b.template),e=function(b){switch(b.type){case"photo":var c=b["photo-url"];return a('<img width="75" height="75"/>').attr({src:c[c.length-1].content,title:h(b),alt:h(b)}).wrap("<div/>").parent().html();case"video":var d=b["video-player"],e=d[d.length-1].content;if(e.match(/<\s*script/))return null;return e;case"audio":return b["audio-player"]+" "+a("<div/>").text(h(b)).html();default:return null}},f=function(b,c){return a(b[c]).filter(":not(:empty):first").text()},g=function(a){var b;switch(a.type){case"regular":return a["regular-title"]||f(a,"regular-body");case"link":return b=a["link-text"]||f(a,"link-description"),b===""&&(b=a["link-url"]),b;case"video":return f(a,"video-caption");case"audio":return f(a,"audio-caption");case"photo":return f(a,"photo-caption");case"quote":return'"'+a["quote-text"].replace(/<.+?>/g," ").trim()+'"';case"conversation":return b=a["conversation-title"],b||(b=a.conversation.line,typeof b!="string"&&(b=line[0].label+" "+line[0].content+" ....")),b;case"answer":return a.question;default:return a.type}},h=function(a){var b=g(a)||"";return b.replace(/<.+?>/gi," ")},i=function(b,c){return{date:new Date(c.date),config:b,html:a.tmpl(d.posted,{type:c.type.replace("regular","blog entry"),url:c.url,image:e(c),title:h(c)})}},j=function(c){var d=[],e=0,f,g;if(c.query&&c.query.count&&c.query.count>0)if(a.isArray(c.query.results.posts.post)){f=c.query.results.posts.post.length;for(;e<f;e++)g=c.query.results.posts.post[e],d.push(i(b,g))}else a.isPlainObject(c.query.results.posts.post)&&d.push(i(b,c.query.results.posts.post));return d};return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from tumblr.posts where username="'+b.user+'"'),dataType:"jsonp",success:function(a){c(j(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.twitter=function(b,c){var d=a.extend({},{posted:"{{html tweet}}"},b.template),e=function(a){var b=function(a){return a.replace(/[a-z]+:\/\/[a-z0-9-_]+\.[a-z0-9-_:~%&\?\/.=]+[^:\.,\)\s*$]/ig,function(a){return'<a href="'+a+'">'+(a.length>25?a.substr(0,24)+"...":a)+"</a>"})},c=function(a){return a.replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15})/g,function(a,b,c){return b+'<a href="http://twitter.com/'+c+'">@'+c+"</a>"})},d=function(a){return a.replace(/(^|[^\w'"]+)\#([a-zA-Z0-9_]+)/g,function(a,b,c){return b+'<a href="http://search.twitter.com/search?q=%23'+c+'">#'+c+"</a>"})};return d(c(b(a)))},f=function(c){var f=[],g=0,h,i;if(c&&c.length>0){h=c.length;for(;g<h;g++)i=c[g],f.push({date:new Date(i.created_at),config:b,html:a.tmpl(d.posted,{tweet:e(i.text)}),url:"http://twitter.com/#!/"+b.user})}return f};return a.ajax({url:"https://api.twitter.com/1/statuses/user_timeline.json",data:{screen_name:b.user,include_rts:1},dataType:"jsonp",success:function(a){c(f(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.vimeo=function(b,c){var d=a.extend({},{posted:'posted <a href="${url}" title="${description}">${title}</a>'},b.template),e=function(c){var e=[],f=0,g,h;if(c){g=c.length;for(;f<g;f++)h=c[f],e.push({date:new Date(h.upload_date.replace(" ","T")),config:b,html:a.tmpl(d.posted,{url:h.url,description:h.description.replace(/"/g,"'").replace(/<.+?>/gi,""),title:h.title})})}return e};return a.ajax({url:"http://vimeo.com/api/v2/"+b.user+"/videos.json",dataType:"jsonp",crossDomain:!0,success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.wordpress=function(b,c){var d=a.extend({},{posted:'posted <a href="${link}">${title}</a>'},b.template),e=function(c){var e=[],f,g=0,h,i;if(c.query&&c.query.count&&c.query.count>0&&c.query.results.rss.channel.item){f=c.query.results.rss.channel.item,h=f.length;for(;g<h;g++)i=f[g],e.push({date:new Date(i.pubDate),config:b,html:a.tmpl(d.posted,i)})}return e},f=b.user.indexOf("http://")===0?b.user+"/feed":"http://"+b.user+".wordpress.com/feed";return a.ajax({url:a.fn.lifestream.createYqlUrl('select * from xml where url="'+f+'"'),dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery),function(a){a.fn.lifestream.feeds.youtube=function(b,c){var d=a.extend({},{favorited:'favorited <a href="${video.player.default}" title="${video.description}">${video.title}</a>'},b.template),e=function(c){var e=[],f=0,g,h;if(c.data&&c.data.items){g=c.data.items.length;for(;f<g;f++)h=c.data.items[f],e.push({date:new Date(h.created),config:b,html:a.tmpl(d.favorited,h)})}return e};return a.ajax({url:"http://gdata.youtube.com/feeds/api/users/"+b.user+"/favorites?v=2&alt=jsonc",dataType:"jsonp",success:function(a){c(e(a))}}),{template:d}}}(jQuery)
View
2  src/core.js
@@ -1,6 +1,6 @@
/*!
* jQuery Lifestream Plug-in
- * @version 0.2.2
+ * @version 0.2.3
* Show a stream of your online activity
*
* Copyright 2011, Christian Vuerings - http://denbuzze.com
View
4 src/services/bitbucket.js
@@ -57,10 +57,10 @@ $.fn.lifestream.feeds.bitbucket = function( config, callback ) {
};
$.ajax({
- url: $.fn.lifestream.createYqlUrl('select events.event,'
+ url: $.fn.lifestream.createYqlUrl('select events.event,'
+ 'events.node, events.created_on,'
+ 'events.repository.name, events.repository.owner '
- + 'from json where url = "https://api.bitbucket.org/1.0/users/'
+ + 'from json where url = "https://api.bitbucket.org/1.0/users/'
+ config.user + '/events/"'),
dataType: 'jsonp',
success: function( data ) {
View
13 src/services/digg.js
@@ -11,7 +11,7 @@ $.fn.lifestream.feeds.digg = function( config, callback ) {
$.ajax({
url: "http://services.digg.com/2.0/user.getActivity?username="
- + config.user + "&type=javascript",
+ + config.user + "&type=javascript",
dataType: "jsonp",
success: function( data ) {
var output = [], i = 0, j;
@@ -29,17 +29,18 @@ $.fn.lifestream.feeds.digg = function( config, callback ) {
for( l = 0; l<k; l++) {
// Get most accurate date
var time;
- if( item.activity[l] == 'submission' || item.promote_date == null ) {
+ if( item.activity[l] === 'submission'
+ || item.promote_date === null ) {
time = item.date_created;
} else {
time = item.promote_date;
}
output.push({
- date: new Date( time * 1000 ),
- config: config,
- html: $.tmpl( template[item.activity[l]], item )
- });
+ date: new Date( time * 1000 ),
+ config: config,
+ html: $.tmpl( template[item.activity[l]], item )
+ });
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.