User:Jay Sea/chat.js

/* Chat Options */ importScriptPage('ChatOptions/code.js', 'dev');

/* Mute User */ // 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;}'); })		}	}); }