User:Cheeseskates/chat.js

////////////////////////////////////////////////////////////////////////////////

/*———————————————————————————————————————————————————————————————————————————— // Direct JavaScript code. /* Direct Javascript code is here because a page does not exist for it here on Wikia's and Wikimedia's domain. It is large and slow, but completely customizable. When there is a code/etc.js page with the code, please put the page name into ImportArticles at the bottom of this page instead. */ /*————————————————————————————————————————————————————————————————————————————

////////////////////////////////////////////////////////////////////////////////

/**/ ///————————————————————— Major Direct JavaScript code ———————————————————————/// /**/

//////////////////////////////////////////////////////////////////////////////// // Add when necessary

////////////////////////////////////////////////////////////////////////////////

/**/ ///————————————————————— Minor Direct JavaScript code ———————————————————————/// /**/

////////////////////////////////////////////////////////////////////////////////

// Show a message if the CC chat.js page loaded onto the chat. (function {    var poll = setInterval(function  { if (window.mainRoom && mainRoom.isInitialized === true) { clearInterval(poll); mainRoom.model.chats.add(new models.InlineAlert({ text: "CC chat.js page loaded!" }));       }    }, 523); });

////////////////////////////////////////////////////////////////////////////////

//// // ——————————————————— End Direct Import JavaScript Code ———————————————————— // ////

////////////////////////////////////////////////////////////////////////////////

//———————————————————————————————————————————————————————————————————————————— // Script Configurations /* All of the confgurations below contribute to how the JavaScript imports function. It only works with imports like this, not direct JavaScript code, hence why it is in between here and the mentioned section above. */ //————————————————————————————————————————————————————————————————————————————

////////////////////////////////////////////////////////////////////////////////

// Chat JavaScript /* Ajax Emoticon */ ajaxEmoticonsInterval = 1000;

// ChatBlockButton Configuration chatBlockReason = "Misbehaving. (Appeal)", "Disruption. (Appeal)", "Spamming. (Appeal)", "Trolling. (Appeal)", "Banditry (e.g. raiding). (Appeal)", "Shock. (Appeal)", "Cross-wiki drama. (Appeal)", "Cross-wiki Vandal/troll.", "Vandal/spam bot.", "Sockpuppeting. (Appeal)", "Violating Wikia's ToU.",

/* QuickModTools Configuration */ window.QuickModTools = { quickreasons: [ "Misbehaving. (Appeal)", "Disruption. (Appeal)", "Spamming. (Appeal)", "Trolling. (Appeal)", "Banditry (e.g. raiding). (Appeal)", "Shock. (Appeal)", "Cross-wiki drama. (Appeal)", "Cross-wiki Vandal/troll.", "Vandal/spam bot.", "Sockpuppet. (Appeal)", "Connection issues. (Appeal)", "Violating Wikia's ToU.", ],   defbanreason: "Misbehaving. Appeal.", defbanlength: "1200" };

////////////////////////////////////////////////////////////////////////////////

//// // ——————————————————————— End Configuration Section ———————————————————————— // ////

////////////////////////////////////////////////////////////////////////////////

//———————————————————————————————————————————————————————————————————————————— // ImportArticles /* ImportArticles minifies the rest of the JavaScript code and combines multiple HTTP requests into a single data transfer, making it save space and load faster than direct JavaScript imports. It is highly recommended to import JavaScript this way. */ //————————————————————————————————————————————————————————————————————————————

////////////////////////////////////////////////////////////////////////////////

$(function {   importArticles({ type: "script", articles: [ "u:dev:MediaWiki:AjaxEmoticons/code.js", "u:dev:MediaWiki:BlinkingTabAlert.js", "u:dev:MediaWiki:ChatBlockButton/code.2.js", "u:dev:MediaWiki:ChatModHover/code.js", "u:dev:MediaWiki:ChatTimestamps/code.js", "u:dev:MediaWiki:EscapeEmoticons/code.js", "u:dev:MediaWiki:FasterBanModule/code.js", "u:dev:MediaWiki:GiveChatModPrompt/code.js", "u:dev:MediaWiki:MessageBlocker/code.js", "u:dev:MediaWiki:QuickModTools/code.js", "u:botcentral:User:Ditto Creeper Bot/beta", ]   }); });

////////////////////////////////////////////////////////////////////////////////

//// // —————————————————— End ImportArticles section and page ——————————————————— // ////

////////////////////////////////////////////////////////////////////////////////