How to stop a repetitive alert box?

7

1

Recently a colleague forwarded a website link to us saying it was a funny site. After you click on the link, you are stuck in an infinite loop of annoying alert boxes. The only way to stop that was by killing the browser from the task manager. After killing the browser session you couldn't use the restore session feature as it would again open the annoying site. Many of my colleagues lost important data due to this.

Can we write a small application/script/plugin which will stop the alert boxes and/or close the website when required? If yes, then which language is best suited to do it? or Is there any existing application which stops such malicious activities?

P.S : I am using Firefox and I don't want to migrate to any other browser (Chrome etc.)

Deepak Singh Rawat

Posted 2010-01-13T13:13:53.163

Reputation: 303

@Sathya - I regret having clicked that link... – happy_soil – 2010-07-09T00:22:26.210

@Happy_soil : Youch! – Sathyajith Bhat – 2010-07-09T00:40:18.313

How would you determine that it was an annoying alert box or a perfectly valid alert box from an unrelated web-site? The simplest solution is not to open 'funny sites' sent by colleagues or alternatively, implement a web proxy that prevents access to known bad sites (Dynablocker springs to mind but I've no idea what it is, I think I've seen it on a client site somewhere, I'm only prepared to put in as much effort as you here so haven't looked it up on the web). – Lazarus – 2010-01-13T13:19:51.517

2Pretty much the best solution is to never follow links to sites that people say are funny. More often than not, they aren't at all funny. – None – 2010-01-13T13:20:54.230

2http://superuser.com ? – None – 2010-01-13T13:21:49.970

1If you really must, you could use a different browser to open 'funny' webpages. – Adriano Varoli Piazza – 2010-01-13T13:38:04.570

2

Let me guess, http://hurr-durr.com

– Sathyajith Bhat – 2010-01-13T18:59:09.213

Answers

5

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

jensgram

Posted 2010-01-13T13:13:53.163

Reputation: 166

AlertChecker does not work for me. – stepancheg – 2010-08-01T19:49:33.633

... neither AlertStopper – stepancheg – 2010-08-01T19:52:02.693

AlertStopper was what I was looking for. Thanka a lot! – Deepak Singh Rawat – 2010-01-13T16:28:02.497

3

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

RC.

Posted 2010-01-13T13:13:53.163

Reputation: 211

2

Firefox allows you to selectively restore only the tabs you want to restore after a force close, so this shouldn't be an issue. Chrome has a feature where after 3 or so alert boxes you get an option "don't show any more alerts after this one". I'm guessing that behavior wouldn't be too hard to write an addon that replicates.

David Hedlund

Posted 2010-01-13T13:13:53.163

Reputation: 121

1

Just try it on chrome and on the second pop-up check the do not let this site open any more dialogs then click ok and then you can close it

George Whales

Posted 2010-01-13T13:13:53.163

Reputation: 19