Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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())})})
share|improve this question
    
Related: #1 GitHub's SOUP – kenorb Sep 13 '15 at 13:00
    
This is great, thanks! Should have more rep than just 15 from this :) – enderland Nov 14 '15 at 21:41
    
10k+ users cannot see deleted messages in chat, only mods and room owners. – PreferenceBean Nov 14 '15 at 22:09
    
Also, change http://chat.stackexchange.com/messages to /messages So that it works with (a) HTTPS, and (b) SO chat. – PreferenceBean Nov 14 '15 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. – PreferenceBean Nov 14 '15 at 22:13
    
@enderland on Stack Apps, question upvotes are also worth 10, so it would be 30. And make that 40! :) – ᔕᖺᘎᕊ Nov 15 '15 at 14:01

You must log in to answer this question.

Browse other questions tagged .