public
Last active

  • Download Gist
show lyrics
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
 
 
 
//This is a ubiquity command
//to view lyrics of a hindi song specified by you.
 
 
 
CmdUtils.CreateCommand({
names: ["lyrics of","show lyrics of"],
icon: "chrome://ubiquity/skin/icons/tuner-top.png",
description: "This command will show you the lyrics of a hindi song whose initial words will be specified by you",
help: "To use this command type the initials of a hindi song whose lyrics you want to see",
author: {name: "Jyoti", email: "mail2jyoti88@gmail.com"},
homepage: "http://jyzyy.blogspot.com/",
arguments: [{role: 'object', label: 'song', nountype: noun_arb_text}],
preview: function preview(pblock, args) {
pblock.innerHTML = "show the lyrics of <b>" + args.object.html + "</b> .";
},
 
execute: function(args)
{
if(args.object.text=="")
{
displayMessage("specify some initials");
return;
}
else
{
Utils.openUrlInBrowser("http://www.giitaayan.com/search.asp?browse=stitle&s="+args.object.text+"&submit=search")
}
}
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.