19

Currently, to undelete comments under a post, moderators have to click a floating link that's off to the side, which makes deleted comments appear under the post along with "undelete" buttons next to them. It's illustrated well in a screenshot taken from this Meta answer:

enter image description here

The problem is that it's very difficult to get this floating link on the side to show up. If you're on a mobile device or tablet, it's impossible to get it to show up, and even if you're on a desktop computer it won't show up if your screen width is too small. Now there is a workaround for this, where you install a Greasemonkey userscript to adjust the position of the floating link so it will fit within the screen width. But in my experience even that often doesn't work.

So I'd like to request an easier way for moderators to undelete comments without having to click the floating link. I have two suggestions:

  1. Add this functionality to the mod dashboard, an idea that was originally suggested in this Meta post.
  2. If making changes to the mod dashboard is something only done during major updates to the Stackexchange software, then at least create some kind of JavaScript command that does the same kind of thing that the floating link currently does, except without having to click on the floating link.

Would either of these suggestions be feasible? By the way, note that I am not talking about the "show deleted comments" button that already appears on the mod dashboard; that takes you to a separate page and does not allow undeletion of comments.

  • Another idea for where to put an undelete link is at /admin/users/123456/post-comments?state=deleted – Double AA Dec 4 '17 at 19:02
  • @animuson any update? This is annoying sometimes – Double AA Jun 22 '18 at 12:14
11

There is a very nice script Stack Exchange Moderator Tools Improved, which adds, amongst other goodies:

  • If there are deleted comments on the post, a "y deleted" option will appear to the right of the "x more comments" option, and will show all deleted comments upon clicking.

Clicking this link (which is directly under the question or answer) allows you to see and undelete the deleted comments.

enter image description here

| improve this answer | |
  • Why do you have 2 sets of “revisions” and “timeline” links? – J F May 31 '17 at 19:59
  • @JF Because I'm running multiple different scripts and they get added twice. – DavidPostill May 31 '17 at 20:00
4

ArtOfCode wrote a userscript that I use on desktop computers that provides easy access to deleted comments on any screen size. Once you have access, the "undelete" links are there. I sometimes purge an entire thread and then undelete the few relevant comments using this tool, and it's great!

But it doesn't work on my tablet (or rather, GreaseMonkey/Tampermonkey doesn't) and it sounds like I'm not the only person for whom that's true.

If SE were to bake in this functionality, then we could all have it on all devices (when using the full-site view, anyway). The back-end work is already done; this is purely a UI matter. Isn't this better than that hard-to-see out-dented box that only appears when you're using a wide window?

screen shot: controls under voting buttons

From top to bottom, that's: number of flags,1 number of deleted comments, timeline. Everything fits conveniently within the space the site is already using -- no marginal protrusions needed. If the post is super-short, it doesn't overlap with comments either because those don't extend past the post's left margin.

1 I changed flag backgrounds from the usual orange back to yellow because I can't read the ones that use orange. You'd get your flag color there, whatever it is.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .