<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mozilla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Noscute</id>
	<title>MozillaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mozilla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Noscute"/>
	<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/Special:Contributions/Noscute"/>
	<updated>2026-06-04T17:50:13Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Labs/Ubiquity/Ubiquity_0.1_User_Tutorial&amp;diff=105953</id>
		<title>Labs/Ubiquity/Ubiquity 0.1 User Tutorial</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Labs/Ubiquity/Ubiquity_0.1_User_Tutorial&amp;diff=105953"/>
		<updated>2008-08-27T11:25:55Z</updated>

		<summary type="html">&lt;p&gt;Noscute: /* Abbreviating Commands and Using the Suggestion List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Welcome =&lt;br /&gt;
&lt;br /&gt;
Ubiquity is an experimental Firefox extension that gives you a powerful new way to interact with the Web.&lt;br /&gt;
&lt;br /&gt;
You&#039;re used to telling Firefox &amp;lt;i&amp;gt;where you want to go&amp;lt;/i&amp;gt; by typing &amp;lt;b&amp;gt;Web addresses&amp;lt;/b&amp;gt; into the URL bar:&lt;br /&gt;
&lt;br /&gt;
http://farm4.static.flickr.com/3159/2421200474_1bf74ef498_o.png&lt;br /&gt;
&lt;br /&gt;
With Ubiquity installed, you&#039;ll be able to tell Firefox &amp;lt;i&amp;gt;what you want it to do&amp;lt;/i&amp;gt; by typing &amp;lt;b&amp;gt;commands&amp;lt;/b&amp;gt; into a new Ubiquity input box.&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080819151657.jpg&lt;br /&gt;
&lt;br /&gt;
Ubiquity commands can do nearly anything.  Ubiquity comes with a set of commands that make common Web tasks faster and easier. In this tutorial, we&#039;ll teach you how to use some of the them.  By the end of this tutorial you&#039;ll be able to perform a quick wikipedia, google, definition, and yelp searchs; add maps to your email; and translate a snippet of a web page, highlight a word, and then email it to a friend.&lt;br /&gt;
&lt;br /&gt;
The commands that come with Ubiquity are just the beginning: anyone can create new commands and share them.  Creating Ubiquity commands&amp;amp;mdash;and [http://www.azarask.in/blog/post/sharing-streamable-functionality/ extending the web]&amp;amp;mdash;should be as easy as creating a web page.&lt;br /&gt;
If you want to learn how to create your own commands, please see the [[Labs/Ubiquity/Ubiquity_0.1_Author_Tutorial|Developer Tutorial]].&lt;br /&gt;
&lt;br /&gt;
Ubiquity is still a work in progress, and we are eager for you to join our virtual team to experiment.  If, when reading this tutorial, you think of a way that Ubiquity could be made easier to use, or an idea for its future development, we hope you&#039;ll take a moment to [http://getsatisfaction.com/mozilla/products/mozilla_ubiquity share your thoughts].  By getting involved with Ubiquity while the project is still in its early stages, you have an opportunity to shape the direction of its growth.&lt;br /&gt;
&lt;br /&gt;
== If you&#039;re on a Mac... ==&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to install [http://growl.info/ Growl].  This is a Mac OS X system extension that applications can use to display unobtrusive transparent messages.  Ubiquity uses Growl notifications to show you the output of commands and tell you about errors.&lt;br /&gt;
&lt;br /&gt;
On Windows (XP and later), you don&#039;t need to install anything special, as Ubiquity will use the operating system&#039;s built-in &amp;quot;toaster&amp;quot;-style pop-up messaging.&lt;br /&gt;
&lt;br /&gt;
On Linux, we don&#039;t have a good messaging system yet.  If you have a suggestion for how Ubiquity can display messages on Linux (preferably in a way that will work on all major distros and window managers), please tell us about it.&lt;br /&gt;
&lt;br /&gt;
= The Basics =&lt;br /&gt;
&lt;br /&gt;
== Starting Ubiquity ==&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t already done so, [https://people.mozilla.com/~avarma/ubiquity-0.1.xpi install Ubiquity]. Once you&#039;ve done that, you can summon Ubiquity by tapping &#039;&#039;&#039;option-space&#039;&#039;&#039; on the Mac, or &#039;&#039;&#039;control-space&#039;&#039;&#039; if you&#039;re on Windows.&lt;br /&gt;
&lt;br /&gt;
(On Linux, Ubiquity isn&#039;t fully supported yet.  Some of the commands will work, but others won&#039;t.  This is because we&#039;re missing a system to display output messages.  See the section above.)&lt;br /&gt;
&lt;br /&gt;
Once you hit the appropriate key-combo, you&#039;ll be presented with a transparent black box, with a blinking white cursor, in the upper-left of your browser.&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080714190900.jpg&lt;br /&gt;
&lt;br /&gt;
You give Ubiquity a command by typing something in here and then hitting the Enter key.  For the sake of brevity, we&#039;ll call this &amp;quot;issuing&amp;quot; a command.  For the rest of this tutorial, when we say to &amp;quot;issue &#039;XYZ&#039;&amp;quot;, we mean &amp;quot;hit alt-space (or ctrl-space) to bring up the Ubiquity box, then type XYZ&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== First Command: Searching Wikipedia ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s start with Wikipedia. Say you want to know what a &amp;quot;babel fish&amp;quot; is. You simply issue &amp;quot;wikipedia babel fish&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
While you&#039;re typing your command, you&#039;ll see two things underneath the input box:  A &#039;&#039;&#039;suggestion list&#039;&#039;&#039; and a &#039;&#039;&#039;preview&#039;&#039;&#039; of the current command.  In the picture below, the suggestion list consists of &amp;quot;wikipedia&amp;quot; and &amp;quot;weather&amp;quot;, while the preview says &amp;quot;Searches Wikipedia&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080819152417.jpg&lt;br /&gt;
&lt;br /&gt;
When you finish typing &amp;quot;wikipedia babel fish&amp;quot; you should see some summaries of various Wikipedia pages about Babel Fish, like so:&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080819152930.jpg&lt;br /&gt;
&lt;br /&gt;
It will take a moment for the above information to be gleaned from Wikipedia, but Ubiquity stays fully responsive during this time.&lt;br /&gt;
&lt;br /&gt;
Next, you can:&lt;br /&gt;
&lt;br /&gt;
* Hit Enter (or Return) to &#039;&#039;&#039;execute&#039;&#039;&#039; the command.  Executing the Wikipedia command has the effect of taking you to the Wikipedia page.&lt;br /&gt;
* Hit Escape to &amp;lt;b&amp;gt;cancel&amp;lt;/b&amp;gt; the command.  Ubiquity disappears with no effect.&lt;br /&gt;
* Click on one of the &amp;lt;b&amp;gt;links&amp;lt;/b&amp;gt; in the preview.  In the case of the Wikipedia preview, clicking a link will take you directly to the article you&#039;re interested in.&lt;br /&gt;
&lt;br /&gt;
== Abbreviating Commands and Using the Suggestion List ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Wikipedia babel fish&amp;quot; is quite a lot to type.  You can save some wear and tear on your fingers by letting Ubiquity&#039;s suggestion list do the work for you.  As you saw in the last section, bringing up Ubiquity and typing only &amp;quot;w&amp;quot; presents you with suggestions of all the commands that start with that letter: namely, Wikipedia and Weather.&lt;br /&gt;
&lt;br /&gt;
When you add the letter &amp;quot;i&amp;quot;, the suggestion list narrows down to just the one command that starts with &amp;quot;wi&amp;quot;&amp;amp;mdash;&amp;quot;Wikipedia&amp;quot;.  At this point, you can hit the space bar and type the rest of your sentence, and Ubiquity will know that the verb you want to use is &amp;quot;wikipedia&amp;quot;.  So issuing &amp;quot;wi babel fish&amp;quot; is the exact same thing as issuing &amp;quot;wikipedia babel fish&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s try another example.  Suppose you want to know what the weather is like in Chicago.  Try issuing &amp;quot;w chicago&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080819155204.jpg&lt;br /&gt;
&lt;br /&gt;
You&#039;ll see that the top suggestion is &amp;quot;wikipedia chicago&amp;quot;.  If you hit the Return key now, this is the command that will be executed.  But that&#039;s not what we want right now, so hit the &amp;lt;b&amp;gt;down arrow key&amp;lt;/b&amp;gt; instead, to highlight the second suggestion: &amp;quot;weather chicago&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can now see a preview of the weather forecast for Chicago.  Hit return to go to the full weather report page on Wunderground.com. &lt;br /&gt;
&lt;br /&gt;
Of course, you could have just issued &amp;quot;we chicago&amp;quot;, or even &amp;quot;we 60601&amp;quot; (that&#039;s a Chicago zip code) to get the same results.&lt;br /&gt;
&lt;br /&gt;
== Doing Commands on Selections ==&lt;br /&gt;
&lt;br /&gt;
Often, the thing you&#039;re interested in searching for is right in front of you, on the web page you&#039;re looking at.  Why go to the trouble of re-typing it when you can use what you&#039;ve already got?&lt;br /&gt;
&lt;br /&gt;
Select the words &amp;quot;Mountain View, California&amp;quot; below by dragging your mouse across them:&lt;br /&gt;
&lt;br /&gt;
  Mountain View, California&lt;br /&gt;
&lt;br /&gt;
Now summon Ubiquity.  With the input box empty (hit the &amp;quot;delete&amp;quot; key to clear out your last command, if necessary), you&#039;ll see a suggestion list full of different commands that could act upon your selection:&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080819155836.jpg&lt;br /&gt;
&lt;br /&gt;
If you see the command you want, you can just use the down-arrow key to get to it.  Otherwise, you can type the first few letters of the command name:&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080819155845.jpg&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say you&#039;re reading a web page and you find an unfamiliar word:&lt;br /&gt;
&lt;br /&gt;
  aglet&lt;br /&gt;
&lt;br /&gt;
Just select the word and issue &amp;quot;define&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You could have achieved the same thing by typing &amp;quot;define aglet&amp;quot;&amp;amp;mdash;or just &amp;quot;def aglet&amp;quot;, or even &amp;quot;def this&amp;quot;.  (Ubiquity understands &amp;quot;this&amp;quot; to refer to the selection.)&lt;br /&gt;
&lt;br /&gt;
= More Command Examples =&lt;br /&gt;
&lt;br /&gt;
== Emailing == &lt;br /&gt;
&lt;br /&gt;
Right now, the email command uses [http://mail.google.com Google Mail].  That means you&#039;ll only be able to follow along with the next part of the tutorial if you have a GMail account.  Eventually, of course, the command should work with all major web-based email providers, as well as applications like [http://www.mozilla.com/en-US/thunderbird/ Thunderbird].  (If you&#039;re a programmer, [http://groups.google.com/group/ubiquity-firefox we&#039;d love some help with that].)  For now, if you have a GMail account, please make sure you&#039;re logged in.  If you don&#039;t, you might want to skip ahead to the next part of the tutorial.&lt;br /&gt;
&lt;br /&gt;
Assuming you&#039;re logged into your GMail account, issue &amp;quot;email&amp;quot;.  In the suggestion list, you&#039;ll see a suggestion that says &amp;quot;Email (message) (to contact)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080819160313.jpg&lt;br /&gt;
&lt;br /&gt;
This is a clue that the Email command expects two pieces of information:  the message is &amp;lt;b&amp;gt;what&amp;lt;/b&amp;gt; you&#039;re emailing, and the contact is &amp;lt;b&amp;gt;who&amp;lt;/b&amp;gt; you want to send it to.  However, you can leave out one of these things &amp;amp;mdash; or both of them &amp;amp;mdash; and the Email command will still work.  So I can issue any of these commands:&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;email hello&amp;quot;&lt;br /&gt;
* &amp;quot;email to chris&amp;quot;&lt;br /&gt;
* &amp;quot;email hello to chris&amp;quot;&lt;br /&gt;
* &amp;quot;email to chris hello&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I&#039;m using &amp;quot;chris&amp;quot; because that&#039;s the name of someone in my GMail contacts list.  If you don&#039;t have a &amp;quot;chris&amp;quot; in your contacts list, just substitute the name of any of your friends in these examples.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say I&#039;ve found an interesting fact on a web page and I want to send it to Chris.  I can select part of the page, including links, pictures, and anything else, and then issue &amp;quot;email this to chris&amp;quot;.  Ubiquity understands &amp;quot;this&amp;quot; to refer to my selection.  (I could also have said &amp;quot;email it to chris&amp;quot; or &amp;quot;email selection to chris&amp;quot; -- all of these are equivalent.)  The selected part of the page shows up in my preview:&lt;br /&gt;
&lt;br /&gt;
[[Image:Email-picture-selection.png]]&lt;br /&gt;
&lt;br /&gt;
(Actual email addresses blurred out to protect the innocent.) Since I know several people named Chris, there are several lines in the suggestion list -- one each Chris in my GMail contacts list.  I can arrow-key down to the Chris I want and then hit the Enter key.&lt;br /&gt;
&lt;br /&gt;
I&#039;m taken to the GMail &amp;quot;compose new email&amp;quot; page.  The chunk of the page that I selected is reproduced in the body of my email, the &amp;quot;to&amp;quot; field is filled with the email address I selected, and the &amp;quot;subect&amp;quot; field contains the title of the web page I was on.  I can now edit this email to add anything else I want to say, before clicking &amp;quot;Send&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== The Map command ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say you&#039;re arranging to meet up with a friend at a restaurant, and you want to include a map in the email.  (Yes, it&#039;s Aza&#039;s favorite example.)&lt;br /&gt;
&lt;br /&gt;
Type out the address you want to map, then select it and issue &amp;quot;map&amp;quot;.  In the preview, you&#039;ll see a thumbnail-size map of the area (from Google Maps).&lt;br /&gt;
&lt;br /&gt;
[[Image:Map-preview-1.png]]&lt;br /&gt;
&lt;br /&gt;
If you execute the command, you&#039;ll be taken to the Google Maps page.  Or, you can click on the image in the preview to get a larger, interactive version.  After scrolling and zooming this map to your liking, you can click the &amp;quot;insert map in  page&amp;quot; link to insert the map into your email.&lt;br /&gt;
&lt;br /&gt;
[[Image:Map-preview-2.png]]&lt;br /&gt;
&lt;br /&gt;
You can give it a try by selecting the address below and issuing &amp;quot;map&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 Mozilla Corporation, 1981 Landings Drive, Mountain View, CA&lt;br /&gt;
&lt;br /&gt;
Then click the image in the preview to get the larger map, then click the &amp;quot;insert map in page&amp;quot; link and watch what happens.  Surprised?&lt;br /&gt;
&lt;br /&gt;
== The Translate command ==&lt;br /&gt;
&lt;br /&gt;
That&#039;s right, Ubiquity commands can alter the contents of a page, even if the page wouldn&#039;t normally be editable.  A command that makes good use of this ability is the &amp;quot;Translate&amp;quot; command.  To try it, select the text below and issue &amp;quot;translate&amp;quot; (or just &amp;quot;tra&amp;quot;) and execute.&lt;br /&gt;
&lt;br /&gt;
　　２１世紀に、国際化をよく考えなければなりません。&lt;br /&gt;
&lt;br /&gt;
It&#039;s translation-by-machine, so the results are bound to sound awkward, but at least you can get the gist of the meaning.&lt;br /&gt;
&lt;br /&gt;
The full command is&lt;br /&gt;
&lt;br /&gt;
 translate (text) (from language) (to language)&lt;br /&gt;
&lt;br /&gt;
So you can specify what language you want to translate from, and what language you want to translate to.  If you leave either of these out, Ubiquity will just make a guess about what you want.&lt;br /&gt;
&lt;br /&gt;
Here are some other examples you can try:&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;tr good evening to spanish&amp;quot;&lt;br /&gt;
* &amp;quot;tr buenos tardes from spanish to french&amp;quot;&lt;br /&gt;
* Select some English text on this page and then: &amp;quot;translate this to german&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Going Further =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Help and Discovering Commands ==&lt;br /&gt;
&lt;br /&gt;
By now you&#039;re probably wondering, &amp;quot;How many commands are there?  What are they all called?  How am I supposed to know what a command could be unless I memorize them all?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
These are good questions!  To start getting some answers, issue the &amp;quot;command-list&amp;quot; command, and hit Return to execute it.  You&#039;ll be taken to a special page listing every command you have installed, and describing what each one does.&lt;br /&gt;
&lt;br /&gt;
[[Image:Command-list.png]]&lt;br /&gt;
&lt;br /&gt;
For more general help, you can execute the &amp;quot;help&amp;quot; command.  Here, you can change the hotkey that you use to activate Ubiquity, un-subscribe from command feeds, and so on.&lt;br /&gt;
&lt;br /&gt;
The general help page and the command-list page link to each other, so whichever one you open, you can get to the other with a single click.&lt;br /&gt;
&lt;br /&gt;
You can also get to the main help page by typing &#039;&#039;&#039;about:ubiquity&#039;&#039;&#039; into the Firefox URL bar.&lt;br /&gt;
&lt;br /&gt;
== Using the Context Menu ==&lt;br /&gt;
&lt;br /&gt;
Typing into the Ubiquity input box isn&#039;t the only way to activate a command.  Try this:  First select the formula below...&lt;br /&gt;
&lt;br /&gt;
 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13 - 1/15&lt;br /&gt;
&lt;br /&gt;
Then &amp;lt;b&amp;gt;right-click&amp;lt;/b&amp;gt; on the selection (on a Mac, hold down the Ctrl key and click).  You&#039;ll see a &amp;lt;b&amp;gt;context menu&amp;lt;/b&amp;gt; appear.  At the bottom of the menu should be a line that says &amp;quot;Ubiquity&amp;quot;.  Move the mouse over this and a sub-menu will appear containing a variety of Ubiquity commands, like so:&lt;br /&gt;
&lt;br /&gt;
[[Image:Context-menu.png]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Calculate&amp;quot;.  You&#039;ll see the result of calculating the expression.&lt;br /&gt;
&lt;br /&gt;
Note that this is exactly the same result as you could have gotten by selecting the formula and issuing &amp;quot;Calculate&amp;quot; by typing into the input box, then hitting Return.&lt;br /&gt;
&lt;br /&gt;
== Teaching Ubiquity New Commands ==&lt;br /&gt;
&lt;br /&gt;
We&#039;ve mentioned that anyone can create Ubiquity commands.  Once created, these commands can be embedded in any web page.  If you have Ubiquity installed and you visit a page with an embedded command, Firefox will present you with the option of &amp;lt;b&amp;gt;subscribing&amp;lt;/b&amp;gt; to the command.&lt;br /&gt;
&lt;br /&gt;
To see this in action, you can visit [http://hg.toolness.com/ubiquity-firefox/raw-file/7435416f211a/examples/sample-cmd.html this example page on Atul&#039;s personal site].  You should see a bar coming down from the top of the browser window asking you whether you want to subscribe to the command or not.&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080820111209.jpg&lt;br /&gt;
&lt;br /&gt;
If you choose to subscribe, you&#039;ll see a rather scary-looking warning page:&lt;br /&gt;
&lt;br /&gt;
http://www.toolness.com/images/20080820111725.jpg&lt;br /&gt;
&lt;br /&gt;
It&#039;s important to understand the dangers of subscribing to Ubiquity commands from sites that you don&#039;t trust.  Since a Ubiquity command can do anything, and it has full access to your web browser, a bad person could write a Ubiquity command to steal your personal information or do malicious things to your computer.  You should not install Ubiquity commands unless you are confident that the source is trustworthy.&lt;br /&gt;
&lt;br /&gt;
In the future, we&#039;ll be creating something called a &amp;quot;trust network&amp;quot; that Ubiquity users can use to share knowledge about which commands are trustworthy.  When you visit a page with an embedded command, you&#039;ll be able to see what your friends with Ubiquity have said about this command -- whether they&#039;ve given it a thumbs-up or left you a warning to let you know it could be dangerous.  This system doesn&#039;t exist yet, but once it does we will modify this section of the tutorial to let you know how to use it.&lt;/div&gt;</summary>
		<author><name>Noscute</name></author>
	</entry>
</feed>