Skip to content

Instantly share code, notes, and snippets.

@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: "[email protected]"},
takes: {"input": noun_arb_text},
license: "MPL,GPL",
execute: function( input ){
var doc = CmdUtils.getDocument();
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: "[email protected]"},
takes: noun_arb_text,
license: "MPL,GPL",
execute: function( input ){
var doc = CmdUtils.getDocument();
@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: "[email protected]"},
license: "MPL,GPL",
execute: function() {
var doc = CmdUtils.getDocument();
var params = Utils.paramsToString({
@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: "[email protected]"},
license: "MPL,GPL",
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: "[email protected]"},
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){
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: "[email protected]"},
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){