Skip to content

Instantly share code, notes, and snippets.

@cjsaylor
Created November 17, 2010 14:49
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 cjsaylor/703454 to your computer and use it in GitHub Desktop.
Save cjsaylor/703454 to your computer and use it in GitHub Desktop.
QR Bookmarklet that opens an external window with the QR code of either selected text or the current URL
javascript:(function() {
window.open('http://chart.apis.google.com/chart?cht=qr&chs=250x250&chl='+encodeURIComponent(getSelection().toString() || window.location.href)+'&chld=H|0', 'QR Window','location=0,status=0,scrollbars=0,toolbar=0,menubar=0,directories=0,resizable=0,width=250,height=250');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment