Some websites, for reasons I'll never understand, implement links using JavaScript in the onclick event, like this:
<div onclick="document.location='/target_url';">
This doesn't allow me to open it in a new window, either by middle-clicking or even right-clicking and selecting "Open in new tab" in the context menu. Is there a way to allow this, either in Chrome or Firefox on Windows? For example, maybe there is some extension that can rewrite the HTML according to certain patterns, a bit like the Stylish extension does for CSS?