modhorat
modhorat

Reputation: 51

Firefox: How to block Javascript Alert Box

Receive an 'alert box' (not a separate pop up), where I have to click 'OK' every time I access a site

Is there any way in Firefox to disable/block it

https://i.sstatic.net/pVSNq.png

Upvotes: 1

Views: 3521

Answers (1)

Bas van Dijk
Bas van Dijk

Reputation: 10713

If you don't have to reload the page you can add execute:

window.alert = function() {};

In the developer console. This will overwrite the alert function with an empty function.

Upvotes: 1

Related Questions