Skip to content

Instantly share code, notes, and snippets.

@dixonsiu
Last active September 26, 2017 07:09
Show Gist options
  • Save dixonsiu/9fe7286b8f7e5d1d16564c48bd60bf7a to your computer and use it in GitHub Desktop.
Save dixonsiu/9fe7286b8f7e5d1d16564c48bd60bf7a to your computer and use it in GitHub Desktop.
Create a new bookmark with the following source codes and you can create a QR code image on the fly
javascript:(function(){var target = window.prompt("Enter a url or string to encode in QR code!","");if(target!=null){var url="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=" + target;var win=window.open(url, "_blank")}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment