-
-
Save raphsabb/47455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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