Search code examples
javascriptweb-applicationsreverse-engineering

Get function called by inputbox


I need to overload the function that is called by a input when the enter button is pressed in order to execute my code and then decide if call the function that the inputbox come with or not.

The WebApp is not mine and the js come minimized.

Is there anyway to do it?


Solution

  • I found an answer by myself: Monitor Events of Chrome DevTools Command Line API offers various ways to observe and inspect event listeners. JavaScript plays a central role in interactive pages, and the browser provides you some useful tools to debug events and event handlers.

    For more info: https://developers.google.com/web/tools/chrome-devtools/console/events#view_event_listeners_registered_on_objects