Skip to content

Instantly share code, notes, and snippets.

@raphsabb raphsabb/lh
Created Jan 15, 2009

Embed
What would you like to do?
/*
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
You can’t perform that action at this time.