Monday, August 8, 2011

My first addon!

I wrote my first Firefox addon! If you have Firefox, you can install it from here. Plus, it's a restartless addon, which means that you don't have to restart Firefox before it's installed. Yay! :D
Don't worry about it saying that it hasn't been reviewed by Mozilla. It's currently in the queue for preliminary review, and the notice should change soon.
Check it out!
// This is an active module of the strugee Add-on
exports.main = function() {
    require("widget").Widget({
        id: "widgetID1",
        label: "My Mozilla Widget",
        contentURL: "http://www.mozilla.org/favicon.ico",
        onClick: function(event) {
            require("tabs").open("http://www.mozilla.org");
        }
    });
};

No comments:

Post a Comment

Comment goes here.