FANDOM


/*Helper
function wikia() {
    //Adds a style sheet
    this.css = function (url) {
        var node = document.createElement("link");
        node.rel = url;
        node.type = "text/css";
        document.body.appendChild(node);
    };

    //Adds a script page
    this.javascript = function (url) {
        var node = document.createElement("script");
        node.src = url;
        node.type = "text/javascript";
        document.body.appendChild(node);
    };
}
*/

/*Initialize helper
var wikia = new wikia();

//Imp
//wikia.javascript("https://raw.github.com/PrincessPlatinum/ChatOptions/master/Options-Menu.js");
//wikia.javascript("http://community.wikia.com/wiki/User:Prince(ss)_Platinum/ChatRegex.js?action=raw");
*/
/*Roranoa's chat hacks 
importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:APIQuery.js&action=raw&ctype=text/javascript');
importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:B3.js&action=raw&ctype=text/javascript');
importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:WhamAPI.js&action=raw&ctype=text/javascript');
importScriptURI('http://c.wikia.com/index.php?title=User:Monchoman45/ChatHacks.js&action=raw&ctype=text/javascript');
 */

/* Chat options 
 
var chatOptionsLoaded;
if (chatOptionsLoaded != 1){
chatOptionsLoaded = 1;
importScriptPage('MediaWiki:Chat.js/options.js','cod');
}
*/

/* Block Chat Messages 

if (mw.config.get('wgPageName') === 'Special:Chat') {
    $(function () {
        "use strict";
 
        function createUl(blockee) {
            var isBlocked = $("#WikiChatList>li[data-user='"+blockee+"']").hasClass("blockee");
            if (isBlocked === false) {
                $('.regular-actions').after('<hr class="separator"></hr><ul><li class="ignore"><span class="icon"></span><span class="label">Block Messages</span></li></ul>');
            } else {
                $('.regular-actions').after('<hr class="separator"></hr><ul><li class="ignore blue"><span class="icon"></span><span class="label">Allow Messages</span></li></ul>');
            }	
            $("li.ignore").click(function() { ignore(blockee); });
        }
 
        function ignore(blockee) {
            var blockStyle;
			var blockee = blockee;
            var isBlocked = $("#WikiChatList>li[data-user='"+blockee+"']").hasClass("blockee");
            var isMod = $("#WikiChatList>li[data-user='"+blockee+"']").hasClass("chat-mod");
            if (isMod === false) {
                if (isBlocked === false) {
                    $("li.ignore").addClass("blue");
                    blockStyle = document.createElement("style");
                    blockStyle.innerHTML = ("li[data-user='"+blockee+"']:not(.User){display: none;}");
                    blockStyle.setAttribute("id", "blockStyle-"+blockee);
                    document.head.appendChild(blockStyle);
                    $("#WikiChatList>li[data-user='"+blockee+"']").addClass("blockee");
                    $(".UserStatsMenu li.ignore>span.label").replaceWith("<span class='label'>Allow Messages</span>");
                } else {
                    $("li.ignore").removeClass("blue");
                    blockStyle = document.getElementById("blockStyle-"+blockee);
                    blockStyle.parentNode.removeChild(blockStyle); 
                    $("#WikiChatList>li[data-user='"+blockee+"']").removeClass("blockee");
                    $(".UserStatsMenu li.ignore>span.label").replaceWith("<span class='label'>Block Messages</span>");
                }
            } else {
                var lastMsg = $('.Chat>ul>li:last-child');
                var lastMsgIsAlert = lastMsg.hasClass("inline-alert");
                if (lastMsgIsAlert === true) {
                    lastMsg.after("<li class='inline-alert continued' style='color:red'>You cannot block chat moderators, administrators, or Wikia staff members.</li>");
                } else {
                    lastMsg.after("<li class='inline-alert' style='color:red'>You cannot block chat moderators, administrators, or Wikia staff members.</li>");
                }
            }
        }
 
        function createUlCall() {
            var blockee = $(this).attr('data-user');
            setTimeout(function() { createUl(blockee); }, 0);
        }
 
        $("#WikiChatList").on("click", "li.User", createUlCall);
 
        var messageBlockerStyle = document.createElement("style");
        messageBlockerStyle.innerHTML = ".UserStatsMenu .actions li.ignore .icon { background-image: url('http://images.wikia.com/dzy/images/8/81/Sprite-chat-ignore.png');  } .UserStatsMenu .actions li.ignore .icon { background-position: -0px 0; } .UserStatsMenu .actions li.ignore:hover .icon { background-position: -31px 0; } .UserStatsMenu .actions li.ignore.blue .icon { background-position: -67px 0; } .UserStatsMenu .actions li.ignore.blue:hover .icon { background-position: -98px 0; } #WikiChatList>li.blockee { background: #FFE6D8; !important } .ignore span.label { position: relative; bottom: 5px; left: 3px; }";
        document.head.appendChild(messageBlockerStyle);
    });
}

*/

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.