QR-code bookmarklets

A quick post to share some bookmarklets I made.

I’ve found QR-code “2D barcodes” really handy when playing with my Android phone.

qrcode

Sometimes, I have a web page open on my desktop PC, and I want to quickly load it in the Android Chrome browser to see what it looks like. Rather than re-typing it with my thumbs, the Barcode Scanner application allows me to scan a QR-code from the screen of my computer, and if the decoded text contains a URL, open it in the Android browser.

These two bookmarklets turn the URL of the current page that is open in your browser into a scannable QR-code:

Google Charts API based bookmarklet: Drag this link –>Current URL to QR-code to your bookmarks toolbar.

The code is:
javascript:location.href='http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl='+escape(location.href);

Alternatively, I made a Kaywa QR-code generator version. Drag this link –>Current URL to QR-code to your bookmarks toolbar.

The code is:
javascript:location.href='http://qrcode.kaywa.com/img.php?s=8&d='+escape(location.href);

They both do the same thing, so you probably only want one. Only tested on Firefox.

(Update:  seemed WordPress ate the javascript in the bookmarklet links … should be okay now)