Add hacky support for Firefox.