// ==UserScript==
// @name Show deleted chat messages for Stack Exchange
// @grant none
// @match *://chat.stackexchange.com/*
// ==/UserScript==
setTimeout(function() {
var userscript = function($) {
$('span.deleted').closest('.message').each(function() {
var id = this.id.replace('message-', ''), _this = this;
$.get('//chat.stackexchange.com/messages/' + id + '/history', function(data) {
var msgtxt = data.match(/<div class="content">([\s\S]+?)<\/div>/)[1].trim();