Skip to content

Instantly share code, notes, and snippets.

@lostgoat
Created May 16, 2009 05:00
Show Gist options
  • Save lostgoat/112575 to your computer and use it in GitHub Desktop.
Save lostgoat/112575 to your computer and use it in GitHub Desktop.
Search for episode lists in wikipedia using the google I'm feeling lucky option. Based on "quicky" by Royall
makeSearchCommand({
name: "episodes",
icon: "http://www.tv.com/favicon.ico",
url: "http://www.google.com/search?q=list+of+episodes+wikipedia+{QUERY}&btnI=kudos",
description: "Retreive an 'Episode Guide' page from wikipedia",
// Original author: author: { name: "Royall", email: "[email protected]"},
//Thanks to Royall for the "quicky" command code which I used as the base for this code
author: { name: "lostgoat", email: "[email protected]"},
preview: function(pblock, theWords) {
var searchTerm = theWords.text;
if (theWords.text.length == 0) {
pblock.innerHTML = "<b>Please enter a search term</b>";
return;
}
var h = "http://www.google.com/search?q=list+of+episodes+wikipedia+$" + searchTerm + "&btnI=kudos";
var msg = "<iframe src='" + h + "' width=400 height=400/>";
pblock.innerHTML = msg;
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment