I am trying to write a chrome extension that disables event listeners for all elements (mouseover, click, ...) I am not trying to rewrite noscript, this is just a setup step that i need.
I have tried $("body *).unbind() and .unbind("mouseover click") and .off() and .off("mouseover click")
none worked.
What am i doing wrong?
PS: it would also be fine to just disable all javascript code (coming from the page itself) from running on the page and only allow my extension injected code
.removeEventListenertakes the function listener type (click) and the original function listening to the event. If you don't have both of these available you cannot remove the event set up in pure javascript