User:TheV1ct0ri0u5/global.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 };

//LastEdited window.lastEdited = { time: 'timestamp' };

/*************/ /* 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/Message_Wall_Greeting:TheV1ct0ri0u5?action=edit" target="_blank">MW Greeting</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:ListUsers?group=sysop">Sysops</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:RecentChanges">Recent Changes</a></li>');    $('ul.tools li:last-child').after('<a href="/wiki/Special:Log?type=rights">RtsL</a></li>');    $('ul.tools li:last-child').after('<a href="/wiki/Special:Log?type=block&page=User:' + mw.config.get('wgTitle') + '">UB</a></li>'); $('ul.tools li:last-child').after('<a href="/wiki/Special:Contributions?target=' + mw.config.get('wgTitle') + '">UC</a></li>'); $('ul.tools li:last-child').after('<a href="/wiki/Special:NewPages">NP</a></li>'); $('ul.tools li:last-child').after('<a href="/wiki/Special:Log?type=block">BlLog</a></li>'); $('ul.tools li:last-child').after('<a href="/wiki/Special:BlockList">BList</a></li>'); });

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

importArticles({   type: 'script',    articles: [        'u:dev:AnchoredRollback/code.js',        'u:dev:MediaWiki:AjaxDiff/code.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:AjaxRename/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:QuickLogs/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:Nuke/code.js'        ] });

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

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

importScriptURI('http://monchbox.wikia.com/index.php?title=User:Monchoman45/monobook.js&action=raw&ctype=text/javascript&templates=expand');

//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>'); });