Skip to content Skip to sidebar Skip to footer

Trigger FireFox Extensions From A Custom Button

I have converted some Chrome extensions to firefox .xpi and installed them in FF. They show up in the add ons list but how can I make a custom button somewhere in a toolbar and t

Solution 1:

If you are using the addon SDK do something like this:

//WIDGET METAINFO
var meta_info = widgets.Widget({
    id: "meta_info",
  label: "Displays information about Meta",
  contentURL: data.url("icons/meta.png"),
  panel: meta_panel
});
var meta_panel = panel.Panel({
  width: 500,
  height: 300,
  contentURL: data.url("html/meta.html"),
  contentScriptFile: data.url("js/meta_panel.js"),
  onShow: function()
  {
      get_metas();
  }
});

if you want to do bootstrap see these templates here, you can install the xpi to see it in action:

I'm making more templates let me know if there's one you would like to see.


Post a Comment for "Trigger FireFox Extensions From A Custom Button"