-
-
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
This file contains hidden or 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
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