Skip to content

Instantly share code, notes, and snippets.

@Virildo
Created February 8, 2009 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Virildo/60377 to your computer and use it in GitHub Desktop.
Save Virildo/60377 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
homepage: "http://dizionari.hoepli.it/",
author: { name: "Virildo", homepage: "http://virildo.altervista.org"},
description: "search pdf with google",
icon: "http://www.hoepli.it/img/logo.gif",
name: "dizionario",
takes: {"searchTerm": noun_arb_text},
preview: function( pblock, searchTerm) {
pblock.innerHTML = "Cerca la definizione di: " + searchTerm.text;
},
execute: function( searchTerm ) {
var msg = searchTerm.text + "... caricando la definizione";
var url2 = "http://dizionari.hoepli.it/cerca.aspx?idD=1&query="+ searchTerm.text +"&Cerca.x=0&Cerca.y=0";
Utils.openUrlInBrowser( url2 );
displayMessage( msg ); }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment