News for hackers. Stuff that matters.
Re:Why not adding target=“_blank” to HN links by default? by sovok_x on Wednesday August 10, 2022 @05:27AM (#32409529)
It's like 3 or so lines in userscript if you really need it.

In general case most modern browsers allow an alternate way of opening a tab in background, e.g. middle mouse button click, so this gives users a method of control over what they want hyperlinks to do, but not the other way as there's no easy way to undo target=_blank.

It's usually considered bad UX practice to do so by default unless clicking a hyperlink can cause irreversible state change like in some cases of autopaging.

Re:Why not adding target=“_blank” to HN links by default? by notorandit on Wednesday August 10, 2022 @04:59AM (#32409398)
I would really like this to happen as I often forget to "open in a new tab" those interesting links and then have to go back and do it.
Re:Why not adding target=“_blank” to HN links by default? by fullofdev on Wednesday August 10, 2022 @05:13AM (#32409464)
It's a matter of UX, people can choose if they want to read/open the web on the same tab or on the other tab
Re:Why not adding target=“_blank” to HN links by default? by verdverm on Wednesday August 10, 2022 @11:34AM (#32413716)
ctrl + click is effectively that
Re:Why not adding target=“_blank” to HN links by default? by NickRandom on Wednesday August 10, 2022 @06:59AM (#32410063)
<sigh>

https://news.ycombinator.com/item?id=15054636

https://news.ycombinator.com/item?id=10079388

https://news.ycombinator.com/item?id=8403764

https://news.ycombinator.com/item?id=5240674

https://news.ycombinator.com/item?id=2927091

https://news.ycombinator.com/item?id=8183332

I semi-appologise for the sigh and the snark and I'll take the downvotes as being merited for my tone but the number of times I see posts like this (aka "Why Doesn't HN do xyz?") I cry a little inside. There is a search box at the bottom of each page (which is what I used to provide the links above rather than some super-human feat of search skills) and that search box should be the first port of call for any user that feels the need to post a 'why does HN do / not do...' i.m.o.