Would be even more useful if it could QR-ify any currently select text. I was just thinking of doing that myself.
https://gist.github.com/findel/5099737
Credit for the selection code: http://stackoverflow.com/questions/4652734/return-html-from-...
[Edit: created gist]