Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
Slashdot's last change broke this script, and I can't read slashdot without it anymore. I tried to fix it, but I guess I don't have the CSS skills. They changed the class on the comment div from "commentTop" to "commentTop newcomment", so if I add that to the XPath it seems to add the new div in the right spot, but its not visible for some reason. |
|
|
I love this script but Slashdot has broken it again, can somone fix it please? |
|
|
Smooth, excellent script |
|
|
*fixed again* thank god they moved the scores to the left |
|
|
minor update: less flickering when collapsing up |
|
|
*Updated* works better with the new layout and has this nice slide effect like the buttons in the sidebar |
|
|
another quick update:
|
|
|
Sorry for the delay. I postet an updated version which includes Matthews patch and some nice icons. |
|
|
Looks like Slashdot has changed again, actually in a way that removed the need for the final added div hack in the original script. Fixed version and diff here: http://carroll.org.uk/sandbox/slashdotcommenttree/ ...please integrate, It would be nicer not to fork since this page is widely linked to. |
|
|
This is very nice. I just wish I could quickly expand and collapse the "XXX replies beneath your current threshold" ignominy. |
|
|
This seems to work fine. Minor gripe though: If you were to add font-family:monospace to the div.sct_icon class, the comment titles would not shift position when the comment trees are expanded and collapsed. |
|
|
can someone compile these last additions into a script? Thanks. |
|
|
On second thought, a better fix is to just move the code that tweaks the value of titlenode out of collapseComment() into the "else" section of toggleState(). |
|
|
Mark's modified script adds a [^] button at the bottom of the comment, but when you click it, that button turns into a [+] and the [-] at the top stays unchanged. I fixed this by making the collapseComment() function end with "return titlenode;", and then I modified the toggleState() function to call setCollapsedStyle(collapseComment(titlenode)); when it is collapsing a comment (it currently calls each of those functions separately with "titlenode" as the arg). |
|
|
|
|
|
If anybody is interested, I have expanded this script to include a [^] link at the bottom of each comment which will collapse that comment in the same way as the [-] currently does. This just saves you from scrolling up after a long comment. Here is a link to my version:
|
|
|
Would it be possible to move the [+] collapse sign to the bottom of the comment instead of the top? (Or add a second one.) That way if there is a really long comment and I scroll down to read it then I don't have to scroll up again to collapse it. |
|
|
would it be possible to collapse multiple comment pages into one? Thanks for the script. |
|
|
With ankut's collapse loop it doesn't set the style for comments so they all come out with [-] Add:
after the CollapseComment call. X1011 this is what I did to get a little space between comments addGlobalStyle(".sct_bodypadding{ padding-bottom:3px; }"); var results = document.evaluate(xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for(var i = 0; i < results.snapshotLength; i++) {
Add that after ankut's collapse routine. Really appreciated the original version of this and hope that this one will have the options box soon. |
|
|
oh boy... hahah... one more time? var xpath="//li[@class='comment']";
|
|
|
var xpath="//li[@class='comment']";
|
|
|
Well, if anyone wants the "all closed" state,
function addIcon(titlenode) {
|
|
|
It would be nice if the comments started out closed? |
|
|
I've been waiting for this to be redone. The only problem is there's no space between collapsed comments so they run into each other. |