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