-
-
Save NKid/c56b693291100e29f3ff to your computer and use it in GitHub Desktop.
override alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var proxied = window.alert; | |
window.alert = function(n) { | |
n = n + ' (proxied)'; | |
return proxied.apply(this, arguments); | |
}; | |
})(); | |
alert('hi'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment