Skip to content

Instantly share code, notes, and snippets.

@bkonkle
Created February 23, 2010 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkonkle/312864 to your computer and use it in GitHub Desktop.
Save bkonkle/312864 to your computer and use it in GitHub Desktop.
A quick snippet demonstrating how I got a "Share with Google Reader" button working on PegasusNews.com. This assumes that you are using jQuery.
<a href="http://www.google.com/reader" id="greader-share">Share with Google Reader</a>
<script type="text.javascript">
$('#greader-share').click(function() {
GR________bookmarklet_domain = 'http://www.google.com';
$.getScript('http://www.google.com/reader/ui/link-bookmarklet.js');
return false;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment