moonbuggy
26-03-2006, 11:45 PM
I made a firefox search plugin today. Wasn't very hard. I like it. :)
http://www.moonbuggy.org/plugin.html
It works exactly like the Google search that normally lives in the top right corner of Firefox, but uses my AdSense client ID, so I'm gonna be a billionaire. Assuming I live for the next trillion years or so, that is. Otherwise, I'll make a few cents but never enough for Google to send me a cheque. Still, it's a bit of fun just learning about how this stuff works, regardless. :)
The only tricky bit was realising I needed to encode one of the GET variables, because otherwise for some reason it defaults to visited and unvisited links being the same colour, which is just annoying.
Anyways, I figured I'd share. It's trivial to change the AdSense client ID to yours if you want to employ this plugin yourself, or if you're feeling charitable and feel like throwing a few cents my way every now and then you could just install it as is. :) Or you could just ignore it completely. It's all good, I'm just amusing my self with internet fun. :)
The plugin itself is here: http://www.moonbuggy.org/plugin/GoogleBuggy.src
If you want more information on making these search plugins, you can find it here: http://mycroft.mozdev.org/
Now I just need to ponder the ethical dilemma of whether or not I should deploy this with Firefox on the domain at uni. :)
Oh, yeah, btw, I made a search plugin for ZGeek (http://www.moonbuggy.org/plugin/zgeek.html) aswell. :) It may be a bit dodgy since ZGeek's search script seems to like POST variables and the search plugins only currently support GET, but it seems to be GETting things okay and working fine for me.
Fun! :)
http://www.moonbuggy.org/plugin.html
It works exactly like the Google search that normally lives in the top right corner of Firefox, but uses my AdSense client ID, so I'm gonna be a billionaire. Assuming I live for the next trillion years or so, that is. Otherwise, I'll make a few cents but never enough for Google to send me a cheque. Still, it's a bit of fun just learning about how this stuff works, regardless. :)
The only tricky bit was realising I needed to encode one of the GET variables, because otherwise for some reason it defaults to visited and unvisited links being the same colour, which is just annoying.
Anyways, I figured I'd share. It's trivial to change the AdSense client ID to yours if you want to employ this plugin yourself, or if you're feeling charitable and feel like throwing a few cents my way every now and then you could just install it as is. :) Or you could just ignore it completely. It's all good, I'm just amusing my self with internet fun. :)
The plugin itself is here: http://www.moonbuggy.org/plugin/GoogleBuggy.src
If you want more information on making these search plugins, you can find it here: http://mycroft.mozdev.org/
Now I just need to ponder the ethical dilemma of whether or not I should deploy this with Firefox on the domain at uni. :)
Oh, yeah, btw, I made a search plugin for ZGeek (http://www.moonbuggy.org/plugin/zgeek.html) aswell. :) It may be a bit dodgy since ZGeek's search script seems to like POST variables and the search plugins only currently support GET, but it seems to be GETting things okay and working fine for me.
Fun! :)