Several times I got into conditions my scripts threw alerts in high rates. While there is an alert modal window open, you can't do any other action in the browser. I am looking to develop an add-on that will enable me to kill or suspend the "thread" the alert modal window belongs to.
In What direction should I look?
Maybe this could help?