Tree Style Tab[0] automatically builds a tree of which tab opened which, and allows you to hide stuff based on that.
[0]: https://addons.mozilla.org/en-US/firefox/addon/tree-style-ta...
[0]: https://addons.mozilla.org/en-US/firefox/addon/tree-style-ta...