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

Digg Nested Comments

(obsolete) Allows multi-level nested comments and comment quoting on Digg.

This script adds a reply link to every comment. The link adds the text "@username (#xxxxxx)" to the textbox, with xxxxxx being the numeric id of the comment. The script will linkify all of these it finds, and hide the number so just the @username is visible. The reply comment will then be nested under the parent comment.

It also adds a quote link which does the same as the reply link, and adds the post text after the username.

Screenshot:
Image Hosted by ImageShack.us

The different look of the comments is from this userstyle.

Update: some code cleanup
Update: added quote links
Update: removed a piece of debug code, and hopefully fixed the bug Nougat reported.
Update: Bug is fixed now.
Update: More code cleanup, should be faster now.
Update: Another bug fixed.

Edit: The new digg comment system broke this script completely.




May 28, 2007
pile0nades Script's author

Bug fixed. Just noticed it myself on http://digg.com/world_news/Rare_Footage_of_Flig...

The fix was as simple as changing "ol;" to "ol = false" in a for loop.

 
May 23, 2007
Nougat User

Whoops, new problem. Seems that all of the replies are nested under one comment, instead of under the comments they're supposed to be under.

See here:

http://digg.com/offbeat_news/God_smites_statue_...

 
May 23, 2007
Nougat User

Oh sorry, my carriage return comment made no sense.

Adding a carriage return between the @username (#xxxxxx) and the start of entering your message might make the output cleaner, especially for those not using this script.

 
May 23, 2007
Nougat User

Bug fixed - great!

 
May 9, 2007
Nougat User

Having the script add a carriage return between the @username (#xxxxxx) might make messages less cluttered and more readable to those who aren't using this script.

 
May 9, 2007
Nougat User

@Babcock: it's not that intrusive, really.

Also, yes, I am still seeing the same symptoms I originally reported with the new script installed.

 
May 9, 2007
violentvinyl User

I'm still seeing the same bug Nougat posted.

 
May 9, 2007
Cailean Babcock User

It's a great idea, but unfortunately, really annoying for non-Grease-Monkey users. Instead of traction, it's building irritation. Why not just make a feature request to the Digg admins? It seems like a good preference option, and would work better if incorporated into the system, rather than just adding random numbers to people's posts (hint: it's only pretty if you're using it.)

 
Apr 11, 2007
Nougat User

Let's say I reply to a top level comment. Then other people reply *after* I do. My reply is shown at the *end* of the list of replies to that top level comment, and if someone else who's not using this script replies *to* me *after* me, then their reply is shown *before* mine.

It's a tad confusing. But I love this script and I will continue to use it happily. I comment a lot, and I think people are starting to notice the comment numbers in the posts, so you might be getting some traction soon.

 
Mar 29, 2007
Sami Samhuri Scriptwright

It should arrive in your inbox shortly.

 
Mar 28, 2007
pile0nades Script's author

Could you send me the [quote] changes at pile0nades__@__gmail__.__com (remove underscores)?

 
Mar 26, 2007
Sami Samhuri Scriptwright

I modified your script to add [quote] links as well (20 lines). If you're interested in the changes let me know and I'll send them to you somehow.

I like yours better so I am using it now. It's faster. :)

 
Mar 26, 2007
Sami Samhuri Scriptwright

Ok well this is something I had wanted to do, so thanks!

I was trying similar stuff here: http://userscripts.org/scripts/show/7860

but your code is much leaner. Well done.

 
Mar 25, 2007
pile0nades Script's author

You're right about that, so I've updated the script to use the format "@username (#xxxxxx)" which looks much better. This is what people without the script will see. The number will be hidden when it is linkified so just the @username is visible.

 
Mar 18, 2007
Derrek User

This is a great idea, however digg users have their own way of doing it. @username

so I was thinking instead of inserting >>xxxxxx for everyone to see just replace the post with the user name.

I'm just wondering if people will find the linked numbers annoying... maybe you can keep it linking back to the post just replace the text.

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