So I’m using Gritter for notifications throughout a site, and was wondering if there was a simple way to intersept all the alert() s thrown by any script, with jQuery, and reformat the value of the alert to the body of a Gritter notification?
So I’m using Gritter for notifications throughout a site, and was wondering if there
Share
You can replace the
alertfunction and do whatever you want with the arguments: