This is some code snippets related to Custom Buttons.
Automatically open menu on mouse over (and hide it on mouse out)
Dummy wrapper to create Custom Buttons using CustomizableUI.jsm
Example menu with delayed initialization, install page
Example for safely use only one button for initialization of many “buttons” without UI
Multiline prompt example: opens custom dialog like built-in prompt() function
Lazy initialize button using “code” section
Get unique preferences root for each button
Simple preferences, that syncs with about:config
Warning: this is test version, use at your own risk!