Remove a “onmousedown” event from a DOM element via content script in Google Chrome extension
问题 I'm trying to write a Google Chrome extension that removes the onmousedown event from a <a> tag on a website. Earlier that site used to have onmousedown event as part of the DOM so I could easily remove it via content script by calling element.removeAttribute("onmousedown") . But now, they add that event via javascript so it's not possible for me directly remove that event via content script as it runs in a different javascript context. PS: I'm specifically talking about onmousedown event on