My first (unuseful) Firefox plugin !

I have just discover?? I can not do less than testing it !

So, ythis is the code of my First Firefox Plugin. ??yes, totally unuseful, but it's a test !

var widgets = require("widget");
var tabs = require("tabs");

var widget = widgets.Widget({

label: "Mozilla",

image: "






var widget2 = widgets.Widget(


label: "Random Flickr Photo Widget",

onReady: function(e) {

var imgNode =".pc_img");

this.content = imgNode.src;


onLoad: function(e) {

var self = this;

require("timer").setTimeout(function() {

??self.content = "";

}, (5 * 1000));


onClick: function(e) {;




Connect to, create your own account, and try this code.

A new toolbar will appear at window bottom and show 2 icons:


  1. a link to this blog, click it, you will get a new tab with this blog.
  2. an icon with a changing image every 5 seconds (it's a test !) rolling mages from flickr. Click on it, you will open a new tab to show currently iconified image.

So now, you can create your own plugin


Les commentaires sont fermés.

Créez un site Web ou un blog gratuitement sur

Retour en haut ↑

%d blogueurs aiment cette page :