Fixes for Firefox, which used to be good and is now terrible. OH HOW THE MIGHTY HAVE FALLEN.