Install an ad blocker and flash blocker.  Block everything and then slowly allow things one at a time.

I find firefox pretty intolerant of "bad" scripts compared to Chrome.