You don't need to write one? Just write a ublock origin rule, use grease monkey or whatever is used nowadays.
Or just configure your browser to ignore the target param, eg browser.link.open_newwindow_restriction 0 in about:config
The fact I've gotten so many down votes for my previous comment really nails the point down how HN isn't really used by technical people anymore. It's mostly idiots with opinions.
Wrong again.
The idiots here are arguing to follow default, de-facto specifications and to give users an easy accessible choice.