Remove Alert box before it pops up [duplicate]
问题 This question already has answers here : How to override the alert function with a userscript? (2 answers) Closed 5 years ago . I am trying to remove an Alert box on an external site with Grease Monkey and jQuery. HTML: <!DOCTYPE html> <html> <body> <script>alert("Remove this Alert box with GreaseMonkey.");</script> <p>Hello world</p> </body> </html> GreaseMonkey script (currently without the jQuery part): // ==UserScript== // @name Remove Alert box // @include http://www.example.com/alert