Skip to content

Instantly share code, notes, and snippets.

@Virildo Virildo/x
Created Feb 8, 2009

Embed
What would you like to do?
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
You can’t perform that action at this time.