Skip to content

Instantly share code, notes, and snippets.

@raphsabb
Created January 15, 2009 18:38
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/47525 to your computer and use it in GitHub Desktop.
Save raphsabb/47525 to your computer and use it in GitHub Desktop.
/*
A google search into Gawker Media sites. Feel free to improve or send feedback.
*/
makeSearchCommand({
name: "gawker",
author: { name: "Raphael Sabbat", homepage: "http://raphsabb.blogspot.com"},
help:
'eg. <i>"gawker bmw"</i>' + '<br />' +
'eg. <i>"gawker linux"</i>' + '<br />' +
'eg. <i>"gawker olivia munn"</i>',
url: "http://www.google.com/search?hl=en&q=gawker+AND+{QUERY}&btnG=Search",
icon: "http://www.gawker.com/favicon.ico",
description: "Perform a Google Search @<a href=\"http://www.lifehacker.com\">Gawker Media</a> for the given words.",
preview: function(pBlock, directObj) {
if (directObj.text)
pBlock.innerHtml = "Searches Gawker Media for " + directObj.text;
else
pBlock.innerHTML = "Searches Gawker Media for the given words.";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment