<!-- tag: comments -->
<!-- excerpt: Display comments on questions and answers in conversation threads instead of linearly -->

## History

- June 6, 2012: Fixed an issue that can cause major problems with chat.
- December 17, 2013: Fix an incompatibility with the Winter Bash code.

##Screenshot

Before:

[![comments without threading][1]][1]

After:

[![comments with threading][2]][2]

##About

Instead of showing comments in chronological order, this user script displays them in a threaded view, making it easier to follow conversations in long comment threads.

It uses heuristics similar to the @-reply recognition (but it is a little bit more flexible).

It should be noted that this may obviously change the order in which comments are displayed, so you **cannot rely on a chronological order** anymore. In most cases this doesn't matter, but sometimes it just might.

**Update 2011/07/10:** As suggested by [George Edison](https://stackapps.com/users/18/george-edison), now offers a button to undo the threading on a particular post, in case you want to  see the comments in their regular order. I'm not 100% happy with the UI, but I guess it's good enough. The script also got a little smarter about finding the replied-to comment.

###Download

[install / update script][3] &ndash; [view source][4]

###Platform

I have tested this script in Chrome (Windows 7), Chromium (Fedora 14), and Firefox + Greasemonkey (both OSes).

##Contact

This script is created by Benjamin Dumke-von der Ehe. Note that this is a free-time project of mine, and has nothing to do with my employment at Stack Overflow. See my profile for contact details; you can also often find me in [the Tavern](http://chat.meta.stackexchange.com/rooms/89/the-tavern-general) on Meta Stack Exchange chat.


  [1]: https://i.sstatic.net/MtxEd.png
  [2]: https://i.sstatic.net/jT5tI.png
  [3]: https://bitbucket.org/balpha/user-scripts/raw/tip/threading-comments/threading-comments.user.js
  [4]: https://bitbucket.org/balpha/user-scripts/src/tip/threading-comments/threading-comments.user.js