Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Slashdot Expandable Comment Tree

Expand and collapse any comments on a Slashdot page. Comments not on the original page can also be expanded, they are loaded from the server.

This script allows you to expand and collapse any comments on a Slashdot page. Comments not on the original page can also be expanded, they are loaded from the server. It adds the following buttons in front of comments on Slashdot:

[+], [-]

Expand or collapse a single comment. If a comment is in a collapsed state on the original page, it is loaded from the page to which that comment links. All other comments that are shown on that page are also loaded, but not expanded.

[++]

Expand all comments in this branch.

All loaded comments are expanded, and all comments from the page of the nearest comment that has not yet been loaded are loaded and expanded. Thus, repeated clicking on this button will load and display all comments in this branch.

This also shows all hidden comments in this branch.

[--]

Collapse all comments in this branch.

[.]

Hide or show all replies to this comment.

This does not affect the loading of the hidden comments with the above buttons.

Hiding also collapses the comment.






Nov 20, 2007
starsky51 Scriptwright

Thanks for the fix laruldan. Andrey, thanks for the great script!

 
Oct 30, 2007
laruldan User

Worked great (thanks!), but recently slashdot changed <div [...] class="commentTop"> to <div [...] class="commentTop newcomment"> and broke this script; my solution: replace all @class='commentTop' in script code with starts-with(@class,'commentTop').

 
Jan 13, 2007
Meph0 User

This is the answer to my prayers, I hated to load a new page for every comment I wanted to read, thanks so much! :D

 
Sep 15, 2006
Vijay User

Great script, but unfortunatly the [.] dosn't work with slashdot's New discussion system (that's still in beta though).

 
Jun 20, 2006
Arvid Scriptwright

This script works great. Not only not depracted, like all the others (at least the comments suggest this), it's feature packed too! Thank you!

 
Jun 6, 2006
Andrey Script's author

Updated to display graphical buttons instead of the text ones. This looks much better on the new Slashdot design.

 
May 3, 2006
verifex Scriptwright

This is the latest slashdot live comment tree that works. All others are depreciated as of a week or so ago.

 
Mar 31, 2006
Andrey Script's author

Now there's also a version that doesn't use XPath at all, so it will work on Opera 8. You can download it from the script's Homepage (see above). That version will also work with Greasemonkey, but it appears slightly slower.

 
Mar 29, 2006
Andrey Script's author

Opera 8 doesn't support XPath, but you can use Cameron McCormack's wonderful XPath in JavaScript library as a replacement. Download xpath.js from http://mcc.id.au/xpathjs and place it in Opera's user Javascript folder. Note that this will make it run on every page you visit, so you might want to modify it to limit it to Slashdot (or you can insert it at the top of this script instead).

You could comment on this script if you were logged in.