Pages rely on window.open() for all sorts of non-popup things. You can't just break window.open(), or sites like DDG will stop working.
Not that there aren't ways to fix this, but in general "remove the offending API" rarely works on the Web. You need a more subtle approach.