Skip to content

Instantly share code, notes, and snippets.

@apnerve
Created December 11, 2011 16:48
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save apnerve/1461502 to your computer and use it in GitHub Desktop.
Save apnerve/1461502 to your computer and use it in GitHub Desktop.
Facebook like bookmarklet
javascript:(function(){try{var%20url=encodeURIComponent(location.href);var%20ifr=document.createElement('iframe');ifr.style.position='absolute';ifr.style.top=10+'px';ifr.style.left=10+'px';ifr.style.width=450+'px';ifr.style.height=100+'px';ifr.style.border='none';ifr.src='http://www.facebook.com/plugins/like.php?href='+url+'&show_faces=true&width=450&action=like&colorscheme=light';ifr.scrolling='no';ifr.frameborder=0;document.getElementsByTagName('body')[0].appendChild(ifr);}catch(e){}})();
@sengupta
Copy link

Awesome- I'm forking this then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment