Created
March 23, 2009 11:54
-
-
Save vingran/83525 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
/*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