QR Code Bookmarklet
QR Codes are a useful way of getting data to your mobile phone using it’s built-in camera. They’re basically 2D barcodes that can carry things like URLs and contact details. On Android I’d recommend using the app called Barcode Scanner to read QR Codes.
There were instances where I wanted to open up a webpage with a long URL on my phone & didn’t want to go through the hassle of copying and pasting it into one of those online QR Code generators.
This bookmarklet for Firefox and newer versions of IE lets you create a QR Code for the page you’re on.. it’ll default to the current page, but you can also override this with something else (like a URL from your clipboard, or whatever).
Add a new bookmark to your toolbar, and set the URL to the code below (I’d have put the proper link on here but WordPress disables the Javascript);
javascript:var%20sCode=prompt('Enter%20URL%20to%20encode',window.location);void(window.open('http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl='+encodeURIComponent(sCode),'Qr%20code','top=100,left=200,width=350,height=350,status=yes'));
Written by Matt
January 29, 2010 at 7:44 am
Posted in Android, Internet, Programming, Technical, Web Programming
2 Responses
Subscribe to comments with RSS.

So what is a good website to create a QR code through that won’t redirect to their own stuff or spam etc.??? Thanks Nina
ExaltHisName
May 4, 2012 at 8:36 pm
Just use the bookmarklet & it won’t do any odd redirects/spamming :)
Matt
May 5, 2012 at 8:14 pm