Fork of toolbarbutton.js by Erik Vold.