I basically do this already with Firefox and TreeStyleTabs (but ad-hoc). Any middle mouse/ctrl+click I do on a link, opens in a new tab nested under the current one. So all HN stuff is under one tab that is collapsed, all GitHub stuff is under one and so one. Really effective when you do research, as you can do the initial search on Google, then every result you open goes under the existing tab, which is conveniently labeled via the <title> tag on the Google page.
That actually look pretty neat - I've wanted for a while now for my browser to be more "research" oriented, with ways of grouping all those related tabs that are all trying to answer the same question, or represent the same line of inquery.
https://www.loom.com/share/93c7c0012f514c37b58a42fa65badc88
https://news.ycombinator.com/item?id=28446147