Skip to content

Instantly share code, notes, and snippets.

@dado21780 dado21780/x.js
Created Oct 26, 2009

Embed
What would you like to do?
/* 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
You can’t perform that action at this time.