User:Lego Master/ignore.js

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5. Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R. Opera users have to clear their caches through Tools→Preferences Konqueror and Safari users can just click the Reload button. Chrome: press Ctrl+F5 or Shift+F5 // Original Code by Joeytje50. Fixed and formatted by Madnessfan34537. $.getJSON('/index.php?action=ajax&rs=ChatAjax&method=getListOfBlockedPrivate', function(response) {	$('head').append('li[data-user="'+response.blockedChatUsers.join('"], li[data-user="')+'"] {display:none;} #Rail li[data-user] {display:list-item !important;} '); }) NodeChatController.prototype.blockAllowPrivateAjax = function (name, dir, callback) { $.ajax({		type: 'POST',		url: wgScript + '?action=ajax&rs=ChatAjax&method=blockOrBanChat',		data: {			userToBan : name,			dir: dir		},		success: function(data, textStatus, jqXHR) {			 if(typeof callback == 'function') {callback(data, textStatus, jqXHR);}			$.getJSON('/index.php?action=ajax&rs=ChatAjax&method=getListOfBlockedPrivate', function(response) { $('#ignoredUsers').html('li[data-user="'+response.blockedChatUsers.join('"], li[data-user="')+'"] {display:none;} #Rail li[data-user] {display:list-item !important;}'); })		}	}); }