A pipe as a Firefox custom search engine

There’s a pipe I often use before I reply to a tweet. It shows me recent tweets from and to a Twitter user. There’s no point in replying to someone if they’ve already received a reply that contains the same information.

While using the pipe I began to wonder if I could set it up as a Firefox custom search engine. A quick web search sent me to this article on Wikihow. It looked simple enough – just create a small text file in the Firefox searchplugins directory and that’s it.

After a small amount of experimentation this is what I came up with:

name="Twitter user"
<input name="user" user>

There’s a couple of things to notice here. Firstly, in the pipe I have a Text Input module that has the name “user”. If the name had been “tweeter” then the input tag would have been <input name="tweeter" user>. Secondly, don’t try using the pipe link format http://pipes.yahoo.com/pipes/pipe.info?_id=pipeid since the query generated for the search assumes that the search term parameter is going to be the first parameter. You’ll end up with a query that looks like http://pipes.yahoo.com/pipes/pipe.info?_id=pipeid?user=”fred”, which won’t work.

I found that I needed to restart Firefox in order for my search engine to show up.

Update – Sorry folks, but I’m a blogging novice. I’ve changed the link to the original article I mentioned because the original article was updated and simply didn’t reflect what I was talking about. So lesson one is not to link to anything that starts “Wiki”. For now I’ve changed the link to point to the version of the page I was talking about. My second lesson is to realize that the characters I type in when editing a post are not necessarily the characters that will appear on the blog. My simple quotes appear as fancy quotes, so it means that a copy and paste on the text for my search engine does not work.



2 Responses to “A pipe as a Firefox custom search engine”

  1. Earth2marsh Says:

    While I love the idea of a pipe as a custom search engine, I think there may be an easier way to accomplish this task in particular…

    I use a keyworded bookmark in Firefox to do something similar. To mimic the pipe results, the bookmark would be:

    The “%s” will be replaced. Add a keyword to that bookmark like “tweets” and then you can type “tweets hapdaniel” in the address bar, hit enter, and go directly to http://search.twitter.com/search?q=from:hapdaniel+OR+@hapdaniel

    • hapdaniel Says:

      Thanks for the comment. That certainly is easier.

      I came across a mention of creating a Firefox custom search engine and realized I might be able to use that with a pipe, so that is all I was looking for. And it does seem fun to have my very own custom search engine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: