disable all javascript events on page

前端 未结 3 1729
耶瑟儿~
耶瑟儿~ 2021-01-22 14:46

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 tha

3条回答
  •  离开以前
    2021-01-22 15:04

    It's not possible to intercept or list all previously-chained events in Javascript. However, it does look like Chrome plugins specifically (as opposed to the DOM in general) have an API for manipulating how Javascript works.

提交回复
热议问题