-
-
Save dado21780/218713 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 template command. */ | |
CmdUtils.CreateCommand({ | |
names: ["teddy"], | |
icon: "http://www.stinkyteddy.com/favicon.ico", | |
description: "A real time web search", | |
help: "teddy 'something'", | |
author: {name: "Daniele Mazzoni", email: "mazzoni.daniele@gmail.com"}, | |
license: "GPL", | |
homepage: "http://www.google.com/profiles/mazzoni.daniele?hl=en", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
preview: function preview(pblock, args) { | |
CmdUtils.previewGet(pblock, "http://www.stinkyteddy.com/search#q="+args.object.text+"&t=web,news,video,rt,image", {}, function myPreview(htm){ | |
pblock.innerHTML = htm; | |
}); | |
}, | |
execute: function execute(args) { | |
Utils.openUrlInBrowser("http://www.stinkyteddy.com/search#q="+args.object.text+"&t=web,news,video,rt,image", {}); | |
displayMessage("You selected: " + args.object.text, this); | |
} | |
}); | |
/* This is a template command. */ | |
CmdUtils.CreateCommand({ | |
names: ["spezify"], | |
icon: "http://www.spezify.com/favicon.ico", | |
description: "synoptic search about a topic.", | |
help: "spezify 'something'", | |
author: {name: "Daniele Mazzoni", email: "mazzoni.daniele@gmail.com"}, | |
license: "GPL", | |
homepage: "http://www.google.com/profiles/mazzoni.daniele?hl=en", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
preview: function preview(pblock, args) { | |
CmdUtils.previewGet(pblock, "http://www.spezify.com/#/"+args.object.text, {}, function myPreview(htm){ | |
pblock.innerHTML = htm; | |
}); | |
}, | |
execute: function execute(args) { | |
Utils.openUrlInBrowser("http://www.spezify.com/#/"+args.object.text); | |
displayMessage("You selected: " + args.object.text, this); | |
} | |
}); | |
/* This is a template command. */ | |
CmdUtils.CreateCommand({ | |
names: ["exalead"], | |
icon: "http://www.exalead.com/favicon.ico", | |
description: "A good search engine.", | |
help: "exalead 'something'.", | |
author: {name: "Daniele Mazzoni", email: "mazzoni.daniele@gmail.com"}, | |
license: "GPL", | |
homepage: "http://www.google.com/profiles/mazzoni.daniele?hl=en", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
preview: function preview(pblock, args) { | |
CmdUtils.previewGet(pblock, "http://www.exalead.com/search/web/results/?q="+args.object.text, {}, function myPreview(htm){ | |
pblock.innerHTML = htm; | |
}); | |
}, | |
execute: function execute(args) { | |
Utils.openUrlInBrowser("http://www.exalead.com/search/web/results/?q="+args.object.text); | |
displayMessage("You selected: " + args.object.text, this); | |
} | |
}); | |
/* This is a template command. */ | |
CmdUtils.CreateCommand({ | |
names: ["scoopler"], | |
icon: "http://www.scoopler.com/favicon.ico", | |
description: "A real time web search.", | |
help: "scoopler 'something'.", | |
author: {name: "Daniele Mazzoni", email: "mazzoni.daniele@gmail.com"}, | |
license: "GPL", | |
homepage: "http://www.google.com/profiles/mazzoni.daniele?hl=en", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
preview: function preview(pblock, args) { | |
CmdUtils.previewGet(pblock, "http://www.scoopler.com/search/#"+args.object.text, {}, function myPreview(htm){ | |
pblock.innerHTML = htm; | |
}); | |
}, | |
execute: function execute(args) { | |
Utils.openUrlInBrowser("http://www.scoopler.com/search/#"+args.object.text); | |
displayMessage("You selected: " + args.object.text, this); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment