FANDOM


/*
*/
var timescalled = 0;
 
function checkblock(blockee_eval) {
    blockee2 = blockee_eval;
    if (blockee2==0) {
        $("li.ignore").removeClass("blue");
    } else {
        $("li.ignore").addClass("blue");
    }
}
 
function createul() {
    $('.regular-actions').after('<hr class="separator"></hr><ul class="ignore"><li class="ignore"><span class="icon"></span><span class="label">Ignore</span></li></ul>');
    $("ul.ignore").on("click", block);
    if (timescalled == 0) {
        var ulstyle = document.createElement("style");
        ulstyle.innerHTML = ".UserStatsMenu .actions ul.ignore li .icon { background-image: url('http://images.wikia.com/dzy/images/8/81/Sprite-chat-ignore.png');  } .UserStatsMenu .actions ul li.ignore .icon { background-position: -0px 0; } .UserStatsMenu .actions ul li.ignore:hover .icon { background-position: -31px 0; } .UserStatsMenu .actions ul li.ignore.blue .icon { background-position: -67px 0; } .UserStatsMenu .actions ul li.ignore.blue:hover .icon { background-position: -98px 0; } #WikiChatList>li.blockee { background: #FFE6D8; } ";
        document.head.appendChild(ulstyle);
        timescalled++;
    }
}
 
function createul_init() {
    setTimeout('createul()', 1);
}
 
$("#WikiChatList li.User").on("click", createul_init);
 
function block() {
    var blockee = $('<div/>').append($(this).parents().siblings().children('ul').children('.username').clone()).text();
    var blockee_alt = blockee.replace(" ","_");
	eval("var "+ blockee_alt + "IsBlocked = 0;");
    blockee_eval = eval("var "+ blockee_alt + "IsBlocked = 0;");
    var blockstyle = document.createElement("style");
    if (blockee_eval === undefined) {
        blockee_eval = 0;
    }
    if (blockee_eval == 0) {
        blockstyle.innerHTML = ("li[data-user='"+blockee+"']:not(.User){display: none;}");
        blockstyle.setAttribute("id", "blockstyle");
        document.head.appendChild(blockstyle);
        $("#WikiChatList>li#user-"+blockee_alt).addClass("blockee");
        blockee_eval++;
    } else {
        var blockstyle = document.getElementById("blockstyle")
        blockstyle.parentNode.removeChild(blockstyle); 
        $("#WikiChatList>li#user-"+blockee_alt).removeClass("blockee")
        blockee_eval--;
    }
}
/*
*/

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.