Skip to content

Instantly share code, notes, and snippets.

CmdUtils.CreateCommand({
name: "speak-it",
takes: {"text to speech": noun_arb_text},
icon: "http://text-to-speech.imtranslator.net/favicon.ico",
homepage: "http://www.gialloporpora.netsons.org/ubiquity",
author: { name: "Sandro Della Giustina", email: "sandrodll@yahoo.it"},
license: "MPL,GPL",
description: "Speak the selected text with a very goo voice",
help: "Speak correctly the selected text in correct language source.",
_detectlanguage: function(text){
CmdUtils.CreateCommand({
name: "about-selection",
takes: {"url": noun_arb_text},
icon: "http://digg.com/favicon.ico",
homepage: "http://www.gialloporpora.netsons.org",
author: { name: "Sandro Della Giustina", email: "sandrodll@yahoo.it"},
license: "MPL,GPL",
description: "Show information about your text selection",
help: "Select a text and launch this command to view the number of selected words and characters.",
_aboutsel: function(text){
@gialloporpora
gialloporpora / x
Created December 1, 2008 13:23
Ubiquity command to cite selected text in a web page
noun_type_formatting = new CmdUtils.NounType( "formatting",
["html","bbcode","plain text"]
);
CmdUtils.CreateCommand({
name: "cite",
takes: {"selected text": noun_arb_text},
icon: "http://i250.photobucket.com/albums/gg274/gialloporpora/icone/pencil.png",
homepage: "http://www.gialloporpora.netsons.org/ubiquity",
author: { name: "Sandro Della Giustina", email: "sandrodll@yahoo.it"},
license: "MPL,GPL",
@gialloporpora
gialloporpora / x
Created December 10, 2008 16:11
Cite text in a Web page in BBCode, HTML and plain-text
CmdUtils.CreateCommand({
name: "foxiewire",
icon: "http://foxiewire.com/favicon.ico",
homepage: "http://www.gialloporpora.netsons.org/ubiquity",
description: "If not yet submitted, submits the page to Foxiewire. Otherwise, it takes you to the story's Foxiewire page.",
author: { name: "Sandro Della Giustina", email: "sandrodll@yahoo.it"},
license: "MPL,GPL",
execute: function() {
var doc = CmdUtils.getDocument();
var params = Utils.paramsToString({
CmdUtils.CreateCommand({
name: "foxiewire",
icon: "http://foxiewire.com/favicon.ico",
homepage: "http://www.gialloporpora.netsons.org/ubiquity",
description: "If not yet submitted, submits the page to Foxiewire. Otherwise, it takes you to the story's Foxiewire page.",
author: { name: "Sandro Della Giustina", email: "sandrodll@yahoo.it"},
takes: noun_arb_text,
license: "MPL,GPL",
execute: function( input ){
var doc = CmdUtils.getDocument();
@gialloporpora
gialloporpora / x
Created December 12, 2008 02:14
Foxiewire command
CmdUtils.CreateCommand({
name: "foxiewire",
icon: "http://www.foxiewire.com/favicon.ico",
homepage: "http://www.gialloporpora.netsons.org/ubiquity",
description: "If not yet submitted, submits the page to Foxiewire. Otherwise, it takes you to the story's Foxiewire page.",
author: { name: "Sandro Della Giustina", email: "sandrodll@yahoo.it"},
takes: {"input": noun_arb_text},
license: "MPL,GPL",
execute: function( input ){
var doc = CmdUtils.getDocument();
@gialloporpora
gialloporpora / x
Created December 20, 2008 01:59
Ubiquity Digg Command
/* I prefere to define the Digg Topic in a variable to avoid to slow command calling the Digg API
* to make this I use a little bookmarklet to make easy this operation. Go to this page to find the complete Digg containers
* http://services.digg.com/containers?appkey=http%3A%2F%2Fapidoc.digg.com */
var digg_dict={ "Apple" : "apple", "Design" : "design", "Gadgets" : "gadgets", "Hardware" : "hardware", "Tech Industry News" : "tech_news", "Linux/Unix" : "linux_unix", "Microsoft" : "microsoft", "Mods" : "mods", "Programming" : "programming", "Security" : "security", "Software" : "software", "Business & Finance" : "business_finance", "World News" : "world_news", "Political News" : "politics", "Political Opinion" : "political_opinion", "US Elections 2008" : "2008_us_elections", "Environment" : "environment", "General Sciences" : "general_sciences", "Space" : "space", "Gaming Industry News" : "gaming_news", "PC Games" : "pc_games", "Playable Web Games" : "playable_web_games", "Nintendo" : "nintendo", "PlayStati
<ul>
<li style="list-style-image: url(data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAJUSURBVDiNjZO9S1thGMXPvTfJFbnkipNkLLS0ksFg0M0lf4CboNCEgIIg/RiKtEOn0qGWTtbVoBYcIji10I9J0ApWCjp0kRaXdhHjTW4+uGnur4NJ8GOwZ3nf4TnnfZ5z3scAdBGGYdyVdN+yrGHTNNOtVqsVhuG+pO+S3gE/LtV3BIxzPDJNc8FxHGN0dNRKpVIGoJ2dndr+/r5Vr9cl6bmkN0AoSQIEyHXdj5KYnZ3F932uolKpkM/nK5KQ9FmSCZwLOI7zQBLr6+vXiFdRLBaDtsiTTve3YrFYkM/nbyR3MDU1dSKpLumO+vr6Xruui+d5AFSrVVZWVtjY2KDRaABwdHTE4uIie3t7AJTLZaLRaFXSCyUSid1MJgOA53n09/eTTqdJJpPMzc2xurqKbduMj48Tj8fZ3d0FYHBw8FjSezmOU56fnwdgeXkZ27ap1WpUKhWazSZjY2Nks1kASqVSd4zp6eljSX/MtiHdRDpnEATyfb+bkiSVSqXu3TCM8xgHBga+dkY4OzvDdV2GhoZIJBLMzMxQKBSIRqNkMhlisRhbW1sAJJPJn5I+KB6Pv7poou/7rK2tsbm5SRAEXROXlpY4ODgAoFarYdu2J+llN8ZcLvffMeZyud+SGpLuCVBPT89jSRQKhRvJxWKxISmU9JTOT5Rk9Pb2fpHE5OQkJycn14inp6dMTEx4bdM/SbKAy8sk6WEkElmwLCuSSqUYGRmxgHB7e7t+eHgYazabgaRnkt7SeZnr63xbUtYwjGHTNNNhGP4F9iR9a6/zr4v1/wDE1D9XlC4rrAAAAABJ
/* I comandi di questo feed sono stati pensati per la navigazione sul forum di MozillaItalia */
/* il codice è stato scritto in modo da poterlo facilmente modificare per altri forum powered by SMF */
/* Il TODO lo metto solo per scrivere qualcosa, non è detto si trasformi in DONE */
/* TODO */
/* Creare dei comandi per le unreadreplies e gli unread con anteprima, cosa che forse è troppo complicata per me :-P */
/* creare comando per salvare i topic e proporli come suggerimento */
var mi_forum_url="http://forum.mozillaitali a.org/";
var mi_board_dict={"Seamonkey":1,"Firefox":2,"Thunderbird":3,"Annunci":4,"Pianeta Mozilla":5,"Altro":7,"Traduzioni":8,"FAQ":9,"Camino":10,"Sunbird e Lightning":11,"Componenti aggiuntivi":12,"Amministrazione":13,"Kompozer":15,"Siti non funzionanti":16,"Mozilla portabile":17,"Isolamento":18,"Cestino":20,"SUMO":25};
@gialloporpora
gialloporpora / x
Created February 13, 2009 11:28
MozillaItalia Ubiquity feed
/* I comandi di questo feed sono stati pensati per la navigazione sul forum di MozillaItalia */
/* il codice è stato scritto in modo da poterlo facilmente modificare per altri forum powered by SMF */
/* Il TODO lo metto solo per scrivere qualcosa, non è detto si trasformi in DONE */
/* TODO */
/* permettere l'inserimento di sezioni multiple in cui cercare */
/* Creare dei comandi per le unreadreplies e gli unread con anteprima, cosa che forse è troppo complicata per me :-P */
/* creare comando per salvare i topic e proporli come suggerimento */
var smf_mi_msg={