User:TheV1ct0ri0u5/global.js

/************/ /* UserTags */ /************/

if (mw.config.get('wgSitename') == 'Minecraft Pocket Edition Wiki') { void 0; } else { window.UserTagsJS = { modules: {}, tags: { vandal: { u: 'Problem User', order:-1/0 }, affiliate: { u: 'Partner', order:1 }/* threadmoderator: { u: 'Thread Moderator' }*/ },	oasisPlaceBefore: '' };

UserTagsJS.modules.custom = { 'KCCreations': ['affiliate'], 'ShiaLeBouf2818': ['vandal'] }; importArticle({type:'script', article:'w:c:dev:UserTags/code.js'}); }

/****************/ /* Import Specs */ /****************/

//FastDelete window.fdButtons = [];

window.fdButtons.push(   {        summary: 'Cleanup',        label: 'Cleanup'    },    {        summary: 'Vandalism',        label: 'Vandalism'    },    {        summary: 'Housekeeping',        label: 'Housekeeping'    },    {        summary: 'Spam',        label: 'Spam'    },    {        summary: 'Violation of Wikia\'s Terms of Use',        label: 'ToU'    } );

//QuickCreateUserPage var qtUserPageTemplate = '';

var qtEnableUserPageOverwrite = true;

//MessageBlock var MessageBlock = { title : 'Edit Restriction', message : ' NOTICE! You have been blocked!

Duration: $2 Reason $1 ', autocheck : true };

/*************/ /* User Menu */ /*************/

$('.user-menu').append('global.js'); $('.user-menu').append('common.js'); $('.user-menu').append('Local Signature'); $('.user-menu').append('Bio');

/***********/ /* Toolbar */ /***********/

$(function {   $('ul.tools li:first-child').before('<a href="http://c.wikia.com/wiki/Special:Chat" target="_blank">CCC</a></li>');    $('ul.tools li:first-child').before('<a href="/wiki/Special:Log?page=' + mw.config.get('wgPageName') + '">Page Logs</a></li>');    $('ul.tools li:first-child').before('<a href="/wiki/Special:Log?page=User:' + mw.config.get('wgTitle') + '&type=block">User Blocks</a></li>');    $('ul.tools li:first-child').before('<a href="/wiki/Special:ListUsers?group=sysop">Sysops</a></li>');    $('ul.tools li:first-child').before('<a href="/wiki/Special:ListUsers?group=bureaucrat">Bureaus</a></li>');    $('ul.tools li:first-child').before('<a href="/wiki/Special:ListGroupRights">Groups/Rights</a></li>');    $('ul.tools li:first-child').before('<a href="/wiki/Special:Leaderboard">Leaderboard</a></li>');    $('ul.tools li:first-child').before('<a href="http://c.wikia.com/wiki/Special:RandomWiki">Random Wiki</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Message_Wall_Greeting:TheV1ct0ri0u5?action=edit" target="_blank">MW Greeting</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Special:RecentChanges">Recent Changes</a></li>'); });

/********/ /* AJAX */ /********/

importArticles({   type: 'script',    articles: [        'u:dev:AnchoredRollback/code.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:AjaxRename/code.js',        'u:dev:AjaxUndo/code.js'    ] });

/***********/ /* Editing */ /***********/

importArticles({   type: 'script',    articles: [        'u:dev:FindAndReplace/code.js',        'u:dev:View_Source/code.js',        'u:dev:Sine/code.js',        'u:dev:ViewRemoved/code.js',        'u:dev:QuickCreateUserPage/code.js'        ] });

/************************/ /* Community Management */ /************************/

importArticles({   type: 'script',    articles: [        'u:dev:WHAM/code.js',        'u:dev:Quick_Management/code.js',        'u:dev:RevealAnonIP/usercode.js',        'u:dev:MessageBlock/code.js',        'u:dev:FastDelete/code.js'/*,        'u:dev:MediaWiki:Message/code.js'*/        ] });

/**************/ /* Appearance */ /**************/

importArticles({   type: 'script',    articles: [        'u:dev:DisplayClock/code.js',        'u:dev:MessageBlocker/code.js'        ] });

if (mw.config.get('wgSitename') == "Minecraft Pocket Edition Wiki") { importScriptPage('MediaWiki:Common.js', 'minecraftpocketedition'); importScriptPage('MediaWiki:Wikia.js', 'minecraftpocketedition'); }

importScriptPage('MediaWiki:Torus.js', 'monchbox');

//Chat - Avatar contrib links var articlePath = mw.config.get('wgArticlePath').slice(0,-2);

mainRoom.model.chats.bind("afteradd", function (object) {	var obj = $('#entry-' + object.cid),	href = articlePath + "Special:Contributions\/" + obj.attr('data-user');	obj.find('.avatar').wrap('<a href="' + href + '"></a>'); });