MediaWiki:FixChatEscaping.js

function decode (string) { $.parseHTML(decodeURIComponent(string))[0].data; }

function unEscape { var $a = $('.Chat .inline-alert').last.find('a'); $a.text(decode($a.text)); $a.attr('href', decode($a.attr('href'))); }

mainRoom.socket.bind('join', unEscape); mainRoom.socket.bind('part', unEscape); mainRoom.socket.bind('ban', unEscape); mainRoom.socket.bind('kick', unEscape);