Prevent opening of new window (stay in current)

I need to force all links on a page to open in the same window. Is there a reliable userscript that does this?

It would be applied to a web app that handles links using JS. The code is complex (frameworks + proprietary) and I am not proficient enough to follow it and write a tailor-made script that achieves this.

Already searched for solutions in SO, script reposetories and Chrome plugins, but all I could find is popup blockers. However, I need to open the page and keep it in the same window (target="_self" if it was plain HTML)