This function is built into the page and I cannot modify the original .js file:
cool.lol = function () {
// contents here
}
Is there a way for me to append this function with some of my own scripts?
Like this:
cool.lol = function () {
// contents here
// i would like to add my own stuff here!!!
}
Or is there a way for me to detect that the function has been executed so I can run something after it?
Here’s a demo of the following. Updated to use a closure and remove the need for a temporary variable.