3 ms·
Why does Hacker News not make links open in a new tab?
It's literally a matter of adding target="_blank" to an a tag.
- kristianp 2y agoWhy should a link open in a new tab? Users here are technical enough to ctrl-click to open a new tab.
- ggm 2y agoWell.. long press on tablet and select new tab but I get what you mean.
- pentaphobe 2y agoYou're talking about a subjective preference as thought it's an objective absolute. Personally I prefer how it is. If I want it in a separate tab then I'll middle click or ctrl/cmd+click. As far as I know there's no keyboard shortcut which forces a `target=_blank` links to open in the _same tab_ when I want that behaviour. The one I can't stand is when sites override default behaviours so you can't do either
- fragmede 2y agoI don't want it to work that way, but if you're on desktop, you can just write a Chrome extension to add that for you, if that's how you'd like the site to behave. I made one to add an inline reply button because I wanted one.
- fragmede 2y agoAnd by "just", I mean, here you go: https://github.com/fragmede/hn-open-in-new-tab https://github.com/fragmede/hn-open-in-new-tab
- brudgers 2y agoIf I wanted that behavior, I would use Tampermonkey to script my browser. https://www.tampermonkey.net/ https://www.tampermonkey.net/ But that's me. Good luck.