Created
July 27, 2009 14:29
-
-
Save jyt/156397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is a ubiquity command | |
//it will let you search about timing of your favouraite serial,channel or anything realted to idiot box :) | |
CmdUtils.CreateCommand({ | |
names: ["timing of","info about serial"], | |
description: "This command will let you search about the timings of your favorite serial ", | |
help: "To use this command type the name of the serial whose info you wanna get", | |
author: {name: "Jyoti", email: "mail2jyoti88@gmail.com"}, | |
homepage: "http://jyzyy.blogspot.com/", | |
arguments: [{role: 'object', label: 'name of serial', nountype: noun_arb_text}], | |
preview: function preview(pblock, args) { | |
pblock.innerHTML = "show the timings of <b>" + args.object.html + "</b> ."; | |
}, | |
execute: function(args) | |
{ | |
if(args.object.text=="") | |
{ | |
displayMessage("Specify the name of a tv show"); | |
return; | |
} | |
else | |
{ | |
Utils.openUrlInBrowser("http://tv.burrp.com/search.html?q="+args.object.text) | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment