Skip to content

Instantly share code, notes, and snippets.

@ctide
Created July 8, 2011 23:09
Show Gist options
  • Save ctide/1073047 to your computer and use it in GitHub Desktop.
Save ctide/1073047 to your computer and use it in GitHub Desktop.
Add a google+1 button to any page
javascript:var i,s,ss=['https://apis.google.com/js/plusone.js'];for(i=0;i!=ss.length;i++){x=document.createElement('g:plusone');document.body.appendChild(x);s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment