Mozilla's new Jetpack has some neat features. It can help you to err.. "Explore new ways to extend and personalize the web". This Jetpack is waaay better than your usual jetpack, and it won't help you to earn a Darwin award (unless you have waaay too much creativity in you).
I was messing around with Jetpack, and at the same time *trying* to chat with someone on facebook chat. It's pretty annoying, facebook really really need to implement an XMPP based chat system soon. But until they do so, I used the useful "slidebar" feature in Jetpack to put together a little "slide in-and-out" facebook chat thing.
Hopefully it would be useful for someone. Here's the code.
jetpack.future.import("slideBar");
jetpack.slideBar.append({
onSelect: function(slide) slide({ size: 400}),
icon: "http://facebook.com/favicon.ico",
url: "http://www.facebook.com/presence/popout.php",
width: 400,
height: 600,
onReady: function(slide) $(slide.doc).click(function() { slide({ size: 400, persist: true });
slide.icon.src = "http://facebook.com/favicon.ico"; })
});
After the chat loads, you can click on the pane that just slided, to make it stay. Or if there aren't any useful contacts online, you can just let it slide away.
Well, this is only a "little" thing that you can do with Jetpack. But shows that Jetpack can be used (just like Greasemonkey) to make some annoying stuff usable.









