Skip to content

Instantly share code, notes, and snippets.

@raphsabb
Created January 15, 2009 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raphsabb/47455 to your computer and use it in GitHub Desktop.
Save raphsabb/47455 to your computer and use it in GitHub Desktop.
/*
This is my first contribution to the ubiquity project. I always find myself performing google searches for lifehacker articles that I've read, or, that I'm looking for. With this command, my search is a keyboard-only 3 step process. Thank you ubiquity!
*/
makeSearchCommand({
name: "lh",
author: { name: "Raphael Sabbat", homepage: "http://raphsabb.blogspot.com"},
help:
'eg. <i>"lh ubiquity"</i>' + '<br />' +
'eg. <i>"lh ubuntu"</i>' + '<br />' +
'eg. <i>"lh hive five"</i>',
url: "http://www.lifehacker.com/search/{QUERY}",
icon: "http://www.lifehacker.com/favicon.ico",
description: "Search <a href=\"http://www.lifehacker.com\">Lifehacker.com</a> for the given words.",
preview: function(pBlock, directObj) {
if (directObj.text)
pBlock.innerHtml = "Searches Lifehacker.com for " + directObj.text;
else
pBlock.innerHTML = "Searches Lifehacker.com for the given words.";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment