Modified firefox history script.

Attempted to clean up the script a bit. Still requires attention.