Unofficial import of https://addons.mozilla.org/en-us/firefox/addon/customize_titlebar_v2/