Disable JavaScript alerts for a page

If you encounter a webpage that is generating a lot of alerts, the following bookmark will prevent them from stealing focus but still allow you to see what is being said.

javascript:alert = function ( text ) { console.log( text ); return true; };

Tags: firefoxdevelopmentproblemmagentochromesolutionscripttip