Created
March 3, 2009 23:34
-
-
Save vingran/73615 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 Allociné*/ | |
CmdUtils.CreateCommand({ | |
names: ['allocine'], | |
icon: "http://www.allocine.fr/favicon.ico", | |
homepage: "http://vingran.com/", | |
author: { name: "v!ngran", email: ""}, | |
license: "GPL", | |
description: "Recherche sur le site d'Allociné", | |
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'search term'}], | |
preview: function( pblock, input ) { | |
var template = "Rechercher <b>${name}</b> sur Allocine.fr"; | |
pblock.innerHTML = CmdUtils.renderTemplate(template, {"name": input.object.text}); | |
}, | |
execute: function(input) { | |
Utils.openUrlInBrowser("http://www.allocine.fr/recherche/?motcle="+input.object.text, false); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment