Basically I'm making an extension that provides analytics based on the elements of a page. As the total number of elements often reaches numbers >5,000 but the elements with click events tied to them (the only ones I care about) are usually <50 it would be of great benefit performance wise if I could narrow down focus to only those elements I am interested in. Chrome's devtools function getEventListeners() is exactly what I'm after except, naturally, it only works in the chrome console. To me it would seem logical that there must be a way to do this in a Chrome extension? Pure JS would obviously be preferable but as right now my scope is limited to a single Chrome extension, anything that works there would do the job.
Thanks!
addEventListener()
proto, or use a custom event adder, like jQuery's .on() that logs – Leandroleaning