If you haven't seen
Ubiquity for Firefox yet (and you use Firefox), it's pretty cool. It's very powerful and while I just use it for searching, you can do a lot of things with it.
I was fucking around with it tonight because it bothers me that the amazon search only searches books. I like books and all but I use amazon for a lot more than that. So I found the source for the included version and managed to modify it to do what I wanted it to. I just added the new code in the ubiquity editor window, it overwrote the built in one, and now I can amazon search everything with ubiquity! A glorious victory.
That got me thinking about other things I could make commands and I made a couple really basic ones that searched GT. A simple search is pretty easy. This was my first go:
http://teknocowboys.com/g....html NOTE: DO NOT install this if you've installed the one I link later. It'll overwrite the good one.
See the source here:
http://teknocowboys.com/g...le.js
These commands let you search the different sections of GT and that's about it. Nothing fancy but it gets the job done. Type gt to see the commands
As you can see, those are really, really simple. What I really wanted to do was show previews like you get with Amazon but GT doesn't have a way to get search results independent of the search results page, which is how all the preview-offering commands work. At first, I was going to call it a day and just note that you could probably parse the results page for data but the more I thought about it, the more doable that really sounded.
Now here's a real GT Ubiquity command:
http://teknocowboys.com/gt.html
See the source here:
http://teknocowboys.com/gt.js
A shitton more code but it shows you a little preview of the results, complete with thumbnails, and links to hd and sd. Totally cool, imo.
Of course, this only works for movies. You could write one for games and usermovies but I don't care enough. I'm sure someone could do it with this start.
Also, because it's built around ripping information out of the current search results page, it's extremely vulnerable to changes to that page. If GT wants to make something like this really work, they'll need to provide an API for getting results information that's independent of the page. But I wouldn't count on that.
Enjoy!
fooooooooooooool
fooooooooooooool
i bet you don't even know what that is. it's actually very fast, and thats only the beta!