Skip to content

Instantly share code, notes, and snippets.

@disinfeqt
Created April 6, 2012 06:03
Show Gist options
  • Save disinfeqt/2317486 to your computer and use it in GitHub Desktop.
Save disinfeqt/2317486 to your computer and use it in GitHub Desktop.
Tweet Button (https ready)
javascript:(function()%7Bwindow.twttr=window.twttr%7C%7C%7B%7D;var%20D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C%3EA)%7BG=Math.round((C/2)-(A/2))%7Dwindow.twttr.shareWin=window.open('https://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='https://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')%5B0%5D.appendChild(E)%7D());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment