/* INDE - Ubiquity - Kaywa Any Selection to QR code. */
CmdUtils.CreateCommand({
names: ["Q","QR","QR code","code"],
description: "Create a QR code",
help: "Redirects to
http://qrcode.kaywa.com/ and allows your input
to be generated as qr image",
author: {
name: "Andreas Kalpakides",
email: "
he...@inderesting.com",
homepage: "
www.inderesting.com",
},
license: "GPL",
homepage: "
http://ubiquity.mozilla.com/",
icon: "
http://www.mozilla.com/favicon.ico",
arguments: [{role: "object", nountype: noun_arb_text, label:
"text"}],
execute: function execute(args){
Utils.openUrlInBrowser("
http://qrcode.kaywa.com/img.php?s=6&d=" +
args.object.html);
},
preview: function preview(pblock, args) {
pblock.innerHTML = "This text will be made into QR code:" +
args.object.html.bold();
},
});