I'm developing a browser extension that lets users mark answers as favorites. The default Stack Exchange behavior when the favorite button is clicked messes everything up, though. Even if I set my own event listener to replace the default behavior, it seems to automatically undo my code and do the default behavior.
How can I "turn off" default Stack Exchange sit behaviors?