Another .dan powered site

January 27, 2010

Add a Google Reader Shared Items widget to any site with jQuery

The final new widget for my home page to document is the “Latest Shared Feed Items” widget. This one displays the last 3 items that I’ve shared from Google Reader. I’m no longer displaying this widget but it was a custom designed plug-in (for the most part) so I wanted to share the code.

I placed the above code in a file named jquery.googlereader.shared.js. To implement you just need to add a script reference to that file and the jQuery library, a container to hold the rendered HTML, a few lines of JavaScript to wire everything up, and finally some CSS tweaks to display as desired.