How to stop a repetitive alert box?

Solution 1:

At least two plugins for Firefox seems to be relevant: AlertCheck and AlertStopper.

Solution 2:

You can use NoScript so that by default non-white-listed sites cannot run JavaScript in your browser.

This is one of my favorite plugins for Firefox. Safer browsing, less ads, less annoyance.

NoScript