User:M D N S/ignore.js

// Original Code by Joeytje50 of The Runescape Wiki, Modified to work on any Wiki 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=blockPrivate',		data: {			userToBan : name,			dir: dir		},		success: function(data, textStatus, jqXHR) {			callback(data, textStatus, jqXHR);			$.getJSON('http://runescape.wikia.com/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;}'); })		}	}); }