The following bookmarklet lets mods and room owners see deleted messages in chat and chat transcripts. Useful for when a lot of messages have been deleting and picking through the ruins is proving tough.

javascript:$('.message:has(.deleted)').each(function(){var mid=this.id.split('-')[1];$.get('http://chat.stackexchange.com/messages/'+mid+'/history',function(data){$('#message-'+mid).css('color','red').html($(data).find('.message:eq(0)').html())})})
  • Related: #1 GitHub's SOUP
    – kenorb
    Sep 13, 2015 at 13:00
  • This is great, thanks! Should have more rep than just 15 from this :)
    – enderland
    Nov 14, 2015 at 21:41
  • 10k+ users cannot see deleted messages in chat, only mods and room owners. Nov 14, 2015 at 22:09
  • Also, change http://chat.stackexchange.com/messages to /messages So that it works with (a) HTTPS, and (b) SO chat. Nov 14, 2015 at 22:12
  • Might also want to append <small>[deleted]</small> to the new content, or instead change the background colour or something, as link-only removed messages do not show up the redness and therefore are indistinguishable. Nov 14, 2015 at 22:13
  • @enderland on Stack Apps, question upvotes are also worth 10, so it would be 30. And make that 40! :) Nov 15, 2015 at 14:01


You must log in to answer this question.

Browse other questions tagged .