Permalink
Browse files

* Renamed tv to eps, added tv command

  • Loading branch information...
1 parent 8e65149 commit 1693fce0548be82b30bb3c4dbf06a17b38842350 zxc committed Oct 26, 2010
Showing with 11 additions and 2 deletions.
  1. +11 −2 js/commands.js
View
@@ -81,9 +81,8 @@ install(["url", "u"]
var query = params[0];
if (query == null) {
window.location.reload();
- } else if (query.match(/^http:\/\//) == null) {
- go("http://" + query);
} else {
+ if (query.match(/^http:\/\//) == null) query = "http://" + query;
go(query);
}
}
@@ -152,6 +151,16 @@ install(["ask"]
, "[ _ | query ]"
);
install(["tv"]
+ , function(p) {
+ ifblank(p
+ , "http://en.wikipedia.org/wiki/List_of_television_programs_by_name"
+ , instant(efuse(p) + " tv show site:en.wikipedia.org")
+ );
+ }
+ , "search for a show on wikipedia"
+ , "[ _ | show ]"
+ );
+install(["episodes", "eps"]
, function(p) {
ifblank(
p

0 comments on commit 1693fce

Please sign in to comment.