Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
CmdUtils.CreateCommand({
names: ['emule'],
icon: "http://www.emule-project.net/emule.ico",
author: {
name: "tux",
email: "der_tuxman@arcor.de"
},
description: "Searches for things on eMule",
arguments: [ {role: 'object', nountype: noun_arb_text, label:'text to search for'} ],
preview: function( pblock, sParams ) {
pblock.innerHTML = "Search emule for: " + sParams.object.text;
},
execute: function( sParams ) {
var sP = "http://contentdb.emule-project.net/search.php?s=" + sParams.object.text;
Application.activeWindow.open(Utils.url(sP));
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment