Skip to content

Instantly share code, notes, and snippets.

@Nemolog
Created January 8, 2009 09:22
Show Gist options
  • Save Nemolog/44655 to your computer and use it in GitHub Desktop.
Save Nemolog/44655 to your computer and use it in GitHub Desktop.
Tutti Script Ubiquity
CmdUtils.CreateCommand({
//nome del comando
name: "OilprojectSearch",
//definisco il tipo di parametro passato
takes: {"qualcosa da ricercare": noun_arb_text},
//descrizione sotto...
preview: function( pblock, ricerca ) {
//aggiorno la console
pblock.innerHTML = "Ricerca automatica su http://Bytezone.plumfake.net di:" + ricerca.text;
},
//eseguzione
execute: function( ricerca ) {
//var byteUrl = "http://bytezone.plumfake.net/index.php?s=" + ricerca.text + "&Submit=Search";
var OilUrl = "http://www.oilproject.org/guides_search.php?keyword=" + ricerca.text;
Utils.openUrlInBrowser(OilUrl );
//displayMessage( OilUrl );
}
})
CmdUtils.CreateCommand({
//nome del comando
name: "CodeSearch",
homepage: "http://bytezone.plumfake.net/",
author: { name: "Mauro Rubin", email: "mauro.rubin@plumfake.net"},
help: "Se ne volete saperne di più andate su http://bytezone.plumfake.net/"
//definisco il tipo di parametro passato
takes: {"qualcosa da ricercare": noun_arb_text},
//descrizione sotto...
preview: function( pblock, ricerca ) {
//aggiorno la console
pblock.innerHTML = "Ricerca automatica su Google Code Search di:" + ricerca.text;
},
//eseguzione
execute: function( ricerca ) {
var GCS = "http://www.google.com/codesearch?q=" + ricerca.text + "pippo&hl=it&btnG=Cerca+codice";
Utils.openUrlInBrowser(GCS);
}
})
CmdUtils.CreateCommand({
//nome del comando
name: "TwineSearch",
homepage: "http://bytezone.plumfake.net/",
author: { name: "Mauro Rubin", email: "mauro.rubin@plumfake.net"},
help: "Se ne volete saperne di più andate su http://bytezone.plumfake.net/",
//definisco il tipo di parametro passato (in questo caso "noun_arb_text": testo semplice)
takes: {"qualcosa di interessante": noun_arb_text},
//descrizione che apparirà sulla console
preview: function( pblock, ricerca ) {
//aggiorno la console in tempo reale
pblock.innerHTML = "Ricerca Semantica su twine: " + ricerca.text;
},
//eseguo la ricerca
execute: function( ricerca ) {
var twineUrl = "http://www.twine.com/?interests=" + ricerca.text;
Utils.openUrlInBrowser(twineUrl );
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment