Skip to content

Instantly share code, notes, and snippets.

@boscomonkey
Created January 28, 2021 03:12
Show Gist options
  • Save boscomonkey/48ab4f229d81253856a562dab3445f33 to your computer and use it in GitHub Desktop.
Save boscomonkey/48ab4f229d81253856a562dab3445f33 to your computer and use it in GitHub Desktop.
Bookmarklet to display the current URL as a QR-code in a separate popup window (so as to not replace your current window)
javascript:void(
(
function() {
var orig=location.href;
var url='http://chart.apis.google.com/chart?cht=qr&chs=300x250&chl='+encodeURIComponent(orig);
window.open(url,"_blank","width=320,height=270,resizable=yes,status=yes")
}
)()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment