Archive

Posts Tagged ‘Firefox Ubiquity’

Commands for Firefox’s tool Ubiquity in order to perform a number of tasks efficiently.

Insert a Link from History with Preview using Ubiquity

October 20th, 2009 3 comments

This command should have already been written by someone. Unfortunately all the versions I’ve seen till now either don’t work or are not compatible with Ubiquity 0.5 . So I wrote one on my own. I had to modify the awesomebar noun type for this so that you could see the title of the page as well as the URL link that is going to be inserted. If you’re using Ubiquity with Firefox, the command should have popped up by now for you to subscribe to it.

Here’s a screenshot (click to enlarge):

Insert a link from your history using Ubiquity

Insert a link from your history using Ubiquity

When you call the command, simply type in part of the Title or the URL of the page, select your choice from the list and hit Enter. The command will insert the URL at the cursor point. I’ve also noticed some odd behavior in some cases where the suggestion list changes without warning displaying a completely different command after you type in a few characters. This must be due to some optimization problems with Ubiquity’s Parser 2. I’m not sure why it happens.

Other than that, this command should work just fine. Hope you enjoy it!

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags:

Inserting HTML tags using Firefox Ubiquity

October 5th, 2009 No comments

Have you ever gotten frustrated by the tedious process of wrapping HTML tags around plain text? I certainly have. So I wrote a Ubiquity command to do this. If you’re using Ubiquity, the “Subscribe” bar should have popped up by now. Subscribe to the command, and here’s how to use it.

Say you have a sentence which you want to wrap in “em” tags. Select the sentence, call up the “HTML Insert” command and simply use “em” as the argument. Press enter and viola! Your sentence is now wrapped up in neat “<em></em>” tags :) Here’s a screenshot:

HTML Tag Insert

HTML Tag Insert

Another feature recently added is that if you want to insert a link with the <a> tag, you can do so by typing “HTML Tag a with URL” after selecting the anchor text. On execution, the selected text will be wrapped so: <a href=”URL“>selected text</a> .

That’s all there is to it. Enjoy!

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags:

Host your Firefox Ubiquity Commands for free

August 2nd, 2009 No comments

Today I found a neat and easy way to make your Firefox Ubiquity commands publicly available and easily accessible to all. It’s so simple, it’s difficult to believe that I once thought I had to FTP the file to my own servers and insert the rel=”command” text into HTML. Ubiquity Command hosting was never easier. Here’s how you do it.

Go to http://gist.github.com/ and create an account. Then simply create a new code snippet and paste your command into it and save. That’s it! When you visit the command again, the Ubiquity bar on top will drop down automatically without you having to do anything at all. Simple, easy, and I wish it I had known this earlier. Well, let’s hope others find this post without going through much hassle!

You’ll get your own page with all your commands on it. You can see all the commands I’ve created on my gist account here: http://gist.github.com/bhagwad .

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags:

Firefox Ubiquity – Character Count Command

July 21st, 2009 7 comments

Now that Ubiquity 0.5 is out, Erik’s Character Count Command no longer works. So I have updated it and if you have Ubiquity Firefox, the command bar should have appeared on top for you. Here is the code:

CmdUtils.CreateCommand({
names: ['char-count'],
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'text to count chars in'}],
preview: function( pblock, args ) {
//pblock.innerHTML = argText.object.length;
pblock.innerHTML = "The number of characters is: "+ args.object.text.length;
}
});

Hope you found it useful!

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags:

Ubiquity Commands updated for Ubiquity 0.5

July 10th, 2009 No comments

My three commands for Ubiquity were broken with the latest Ubiquity 0.5 update. So I modified them to be compatible. Here are the links to the three updated commands:

  1. To find the PageRank of a URL
  2. To find the number of Google Search Results for a given term
  3. To open torrent pages with the search term

I hope there are no more major syntax changes since it’s such a pain to rewrite the commands…

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags:

Number of Google search results – Ubiquity Firefox extension

April 6th, 2009 8 comments

Getting the number of Google search results

Update (July 16th 2009): I’ve updated the command for the new Ubiquity 0.5 Parser (Version 2)

For us SEO practitioners out there, we often need to check how many pages are returned by Google for our search term. We do this to find out what the competition is, and whether or not a particular term is worth optimizing for. Too many pages (in the millions) and it may not be worth the effort.

To find this, we’ve always had to open up a new page perform a Google search and wait for the results, which can be time consuming, as well as involve a lot of tab jumping. Since I began to use Ubiquity, I began to think – why should I manually have to go to a new tab? I should be able to do it right from Ubiquity!

For Firefox Ubiquity users, the pop up on the top should have already appeared asking you to subscribe. Once you install, here’s how to use it:

Ubiquity number of  Google results

Ubiquity number of Google results

Using Ubiquity to get the results

Just call up results-google and type the search term. You can also have it selected on the page you’re on. You can use quotes as well to search for the exact phrase. In a few moments, the number of results should be on your screen. It’s that simple!

Please feel free to comment below if you have problems using this tool. Suggestions for improvements will be welcome. I’m not a professional JavaScript programmer, so I’ll do my best :)

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags:

Ubiquity Torrent Search – MiniNova, IsoHunt, PirateBay, btjunkie

April 5th, 2009 12 comments

Update (November 28th 2009): Now that Mininova has been forced to lose most of its torrents, I’ve removed it from the list. It will be sorely missed and we all mourn its demise

Update (July 16th 2009): I’ve updated the command for the new Ubiquity 0.5 Parser (Version 2)

Having implemented a Ubiquity command to find the PageRank of a site, I’m on a roll!

This Ubiquity command allows you to search Mininova, PirateBay, and IsoHunt, opening the results in new tabs. I haven’t yet found a way to display the results in the preview window itself, but I’m not sure that would be a huge value add. The name of the command is torrent-mini-pirate-isohunt.

If you’re using Firefox’s ubiquity extension, the notification should have popped up by now – Post any feedback as comments!

Update: Added support for btjunkie as well.

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags:

Check PageRank with Ubiquity Extension: page-rank

April 3rd, 2009 1 comment

Update (July 16th 2009): I’ve updated the command for the new Ubiquity 0.5 Parser (Version 2)

As a writer, I frequently need to check the Google PageRank (PR) of pages. My old solution was to have a plug in that gave me the PR of the site I was on. This required me to actually go to the site in question and wait for my tool to update itself with the PR.

Ubiquity PageRank

Ubiquity PageRank

When I heard of Firefox’s Ubiquity, I immediately wanted to extend it’s functionality – allowing me to easily check the PageRank of any site without leaving my current page. So after scouring around and not finding anything, I decided to build my own Ubiquity extension for it.

My JavaScript was terribly rusty and I had to learn it all over again. It’s so damn difficult to debug! I used the service of a site called www.liveindya.com along with jQuery.get. So by now, the toolbar on top should have popped up asking you to subscribe to it. Here’s how it works:

PageRank of the current page

Just call up Ubiquity and start typing the command name: page-rank. If your current page is a valid URL, you should get the PR in a few seconds.

PageRank of any other page

Just enter the page-rank command and type in the URL whose PR you wish you find. You can also select a URL on the web page and the command will take your selection and find it’s PR.

URL Auto Correct

The service mentioned above needs “http://” in the URL to work – so if you don’t have it, the tool will append “http://” automatically to the start of what you enter.

If it gives you an “Invalid URL” error, check your URL. If the URL is correct, then delete one character and retype it. This refreshes the preview and should give you the correct PR in a few seconds.

Took me five hours to code this simple extension. I hope you enjoy it!

Update (April 5th 2009): I’m gratified to note that the command has garnered some good reviews! If you have any improvements or errors you notice, please leave your comments below.

Update (April 5th 2009): I’ve changed the jQuery.ajax function and replaced it with CmdUtils.previewAjax. This removes the “Invalid URL” error in the middle of typing and waits for the user to finish before display the results.

Similar Posts:

  • Share/Bookmark
Categories: Technology Tags: