Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/*Commande pour la recherche sur 118218.fr*/
CmdUtils.CreateCommand({
names: ['annu-118218'],
icon: "http://www.118218.fr/favicon.ico",
homepage: "http://vingran.com/",
author: { name: "v!ngran", email: ""},
license: "GPL",
description: "Recherche sur le site de 118218.fr",
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'search term'}],
preview: function( pblock, input ) {
var template = "Rechercher <b>${name}</b> sur 118218.fr";
pblock.innerHTML = CmdUtils.renderTemplate(template, {"name": input.object.text});
},
execute: function(input) {
Utils.openUrlInBrowser("http://www.118218.fr/recherche/lenumero/?q="+input.object.text+"&validButton=JE+TROUVE&typ=r&b=0&submit=1", false);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment