Five Nifty Ubiquity Scripts
Productivity Sauce
The default Ubiquity commands make this Firefox extension one of the niftiest tools around, and the 15 Ubiquity Commands to Enhance Your Web Experience post on the Tools for Thought blog can help you to get the most out of the available commands. While the default commands allow you to perform quite a few actions, the extensible and open nature of Ubiquity means that you can easily expand its functionality by installing additional scripts that add new commands. There are dozens of Ubiquity scripts floating on the Web, but here are a few that you might find particularly useful.
Bit.ly is a relatively new URL shortening service which sports some useful features such as history, automatic Web site thumbnail creation, and click tracking. You can use Bit.ly with Ubiquity to shorten the currently selected URL courtesy of the Bit.ly Ubiquity script.
If you use the ingenious TiddlyWiki one-file wiki, you will appreciate the TiddlyWiki Ubiquity script. Using the script, you can create a new tiddler (the tw-new command), search TiddlyWiki (the tw-search command), and open TiddlyWiki (the tw-open command).
The Jetable Ubiquity script lets you use the Jetable anti-spam service without leaving the convenience of your browser. Using the scripts you can create a temporary email address that expires after a specified period of time. Use the jetable command followed by your real email address and the expiration time, and the script returns a temporary email address that links to the real one.
You probably know that Google's search engine contains a simple yet flexible calculator. Type, for example, 100 EUR in USD in Google's search field, and the engine performs currency conversion. The Google Guide provides a detailed overview of the available Google Calculator commands, and using the Gcalc Ubiquity script you can perform all the available operations from the command line.
The World Clock Ubiquity script does exactly what its name says: type time command followed by the desired location, and the script shows the time in the specified city along with the flag of the country.
You can find even more Ubiquity scripts at the project's wiki and at the Herd page.
If the script you need doesn't exist, you can easily create it yourself. In fact, you don't even have to create a script from scratch: you can simply tweak one of the existing Ubiquity scripts. For example, to create a Ubiquity script that allows me to look up a word in WordNet, I just tweaked the Dictionary script by Lukasz Tyrala, so it looks like this:
CmdUtils.CreateCommand({ name: "wn", homepage: "http://writertools.googlecode.com", author: { name: "Dmitri Popov", email: "writertools@gmail.com"}, license: "MPL", description: "Look up definitions in the WordNet dictionary.", takes: {"word to look up": noun_arb_text}, icon: "http://wordnet.princeton.edu/favicon.ico", preview: function( pblock, theChecked ) { pblock.innerHTML = "Word to look up: " + theChecked.text + ""; }, execute: function( wordToCheck ) { var url = "http://wordnet.princeton.edu/perl/webwn?s={QUERY}"; var urlString = url.replace("{QUERY}", wordToCheck.text); Utils.openUrlInBrowser(urlString); } })
To use the created script, you can either paste in the Command Editor (to open it, point your browser to chrome://ubiquity/content/editor.html) or embed the script in a Web page, so others can subscribe to it. To do the latter, save the script as a wn.js file and add the following line to the Web page (make sure that the path to the wn.js file is correct):
<link rel="commands" href="wn.js" type="text/javascript" name="Ubliquity WordNet Command" />comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.