Let's say a web page did this:
window.alert = console.info;
How can I, through browser console, recover the original alert
method to get the modal back?
I tried accessing the window.prototype
but it does not exist. I would also like to know if such process exist in general (like, if String.*
was erased/redefined by a website or if website made a console.log = window.alert
).
window.alert
.