Last active
December 25, 2019 03:04
-
-
Save Noitidart/9467045 to your computer and use it in GitHub Desktop.
_ff-addon-snippet-AddToolbarButtonToPalette - This shows how to add button to the toolbar palette and on customize it shows how to store the position/order of the icon. Reason to add to palette instead of adding directly to addonbar or navbar is so that user can customize. It is the XUL Overlay equivalent of adding `toolbarbutton` to `<toolbarpa…
Research here about persist: https://developer.mozilla.org/en-US/Add-ons/Code_snippets/Toolbar#Adding_button_by_default
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
README
Rev1
Fork from dgutov / bmreplace / bootstrap.js
Discussion about this method on Mozillazine - Programmatically add a button to toolbar palette?
Updated article on MDN: Creating toolbar buttons (Customize Toolbar Window) - Adding the Button Bootstrap Style
The Gist is not yet in a snippet form, so can't copy pate to Scratchpad yet.
This is the XUL Overlay equivalent of:
Rev2
Rev3
Rev4
TabsToolbar
andaddon-bar