Get all elements that have a click event?

Get all elements that have a click event. Can I get links, buttons, elements with onclick="somefunction ()" but how to get the items(e.g., diva) whose onclick event has been set in JS code?
 alert('You clicked'); 
August 23rd 19 at 10:47
2 answers
August 23rd 19 at 10:49
There's no way universal.

Less just you can only listen to clicks through the document.addEventListener

Here it is possible to unearth, if you really want.
August 23rd 19 at 10:51
No way.
And if you need it to do, you should rewrite the code.
And look for a better elements on the respective CSS classes.
And inline JS to write also not cool.
I need to implement this in a Chrome extension, so rewrite the code on all the sites on the Internet is not an option.
Would be a selector that implements the functionality I need, I would have gladly used it, but I have not found(it is likely that bad looking).
This inline JS just an example of what I need to catch. - Salma_Daugher commented on August 23rd 19 at 10:54

Find more questions by tags JavaScriptjQuery