February 12, 2009...9:15 am

Create search (and other simple) Ubiquity commands without writing code

Jump to Comments

If the Herd was still up (it’s back up now!), you could see that a lot (a majority?) of Ubiquity commands are simply site-specific search commands. And that’s not surprising – search is one of the most common activities on the web (Google’s rich!).

create-new-search-command

What if you could create search commands for any site without writing code and in just a second? Now, you can. Subscribe to this command. Then,

1. Select any searchbox
NYT

2. Execute this command
Create search command

3. And… oh! There’s your command (it even has a icon!)
NYT Search

Go ahead and create searches for Digg, GitHub, BBC or even your own blog. If you need to, you can edit the commands in the command-editor.

Thanks to Marcello Herreshoff for creating this, I added support for POST forms. Note that this command will not work on search forms where they use Javascript to change the url or something else. Examples: Vimeo, Facebook (which has probably the worst URLs ever.) and Gmail. But the vast majority of sites will work.

create-bookmarklet-command-from

It’s rather easy to create commands from bookmarklets in Ubiquity but it could be easier. If the bookmarklet is not already bookmarked, drag it to your bookmarks toolbar. Then, use this command to convert it. It will suggest all the installed bookmarklets.

Create bookmarklet command

Bookmarklet command

You can change the name of the command in the command-editor.

Subscribe to these two commands here. Both these commands will be included in the next release of Ubiquity too.

NOTE: Since the newly created commands are stored in the command editor, it might interfere with your existing command-editor commands. If you have some such problem, pick only the commands you want, click the “Share” button and then, subscribe to it. Now, you can use your command editor again. Thanks Sam! (See Sam Hasler’s comment below).

LOLCODE?

In the future, it should be possible to write complicated Ubiquity commands using Lilyapp or a interface like Yahoo! Pipes. I’d also love to code commands in Brainfuck and LOLCODE. Any other suggestions?

7 Comments


Leave a Reply