User:King kolton9/ignore.js

//Just add   importScript('User:Joeytje50/ignore.js');    to Special:MyPage/chat.js and all users you have blocked for private messages will be hidden from the main chat too. //You can check who are on your ignore list at http://runescape.wikia.com/index.php?action=ajax&rs=ChatAjax&method=getListOfBlockedPrivate //To add someone to that list, just PM a user, then click on the user's name on the PM so a window opens and click to block private messages for that user. That will automatically remove all of their messages from the main chat for you. //If you remove a user from your blocked users list (just click on their username to the right and click to allow private messages) all of their messages sent earlier will reappear. $.getJSON('http://runescape.wikia.com/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;}'); })		}	}); }