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
See Question&Answers more detail:os