0

Some sites signal content change DOM events, such as:

  • pjax:end on document used by many pjax-based sites e.g. GitHub;
  • message on window used by e.g. Google search in Chrome browser;
  • yt-navigate-finish used by Youtube

Currently, I'm using console.table(listAllEventListeners()); to list all the event listeners on a webpage, but what I want is to log to the console whenever one of these events is fired.

Is there a way to do this?

Lucas Mendonca
  • 387
  • 3
  • 13
  • Hello there is a feature in chrome. Look this post: [https://stackoverflow.com/questions/7439570/how-do-you-log-all-events-fired-by-an-element-in-jquery](https://stackoverflow.com/questions/7439570/how-do-you-log-all-events-fired-by-an-element-in-jquery) – andys Feb 13 '22 at 19:24
  • Hi @andys this feature doesn't seem to work for any of the custom events in the examples, just regular events such as "click", "mouseup", "mousedown", etc... – Lucas Mendonca Feb 13 '22 at 20:30

0 Answers0