User:ThePK/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importScriptPage('FastDelete/code.js', 'dev'); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'Spam'}; fdButtons[fdButtons.length] = { 'summary': 'Vandalism', 'label': 'Vandalism'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'Clean-up'}; $(window).load(function { switch( wgCanonicalNamespace ) {    case 'User':    case 'User_talk':      $('.UserProfileActionButton .wikia-menu-button').css('margin-left','24px').appendTo('.UserProfileActionButton');      break;  }  $('.UserProfileActionButton .wikia-button').show; });

window.importArticles({   type: 'script',    articles: [        'u:dev:ListFiles/code.js',        'u:dev:AjaxBatchDelete/code.js',        "u:dev:WHAM/code.2.js",        'u:dev:DupImageList/code.js'        ] });

importArticles({   type: 'script',    articles: [        'w:dev:QuickCreateUserPage/code.js'    ] });

//quick create user page config var qtUserPageTemplate = ''; var qtEnableUserPageOverwrite = true;

importScriptPage('RedirectManagement/code.js', 'dev');

massCategorizationDelay = 1000; importScriptPage('MassCategorization/code.js', 'dev');

/* Portable Infoboxes project */ $(document).ready(function {       $('.AccountNavigation .user-menu').prepend('Enable PI');        $('.AccountNavigation .user-menu').on('click', '#quick-ib', function { var cityID = mediaWiki.config.get('wgCityId'); var dataPI = { action: "ajax", rs: "axWFactorySaveVariable", cityid: cityID, varCityid: cityID, varType: 'boolean', varName: 'wgEnableInsightsInfoboxes', varId: 1513, varValue: 1, reason: "Enabling portable infobox extension", tagname: ''} var dataDraft = { action: "ajax", rs: "axWFactorySaveVariable", cityid: cityID, varCityid: cityID, varType: 'boolean', varName: 'wgEnableTemplateDraftExt', varId: 1516, varValue: 1, reason: "Enabling template draft extension", tagname: ''} $.ajax({                       type: "POST",                        url: 'http://community.wikia.com/index.php',                        data: dataPI,                        dataType: "jsonp",                }); $.ajax({                       type: "POST",                        url: 'http://community.wikia.com/index.php',                        data: dataDraft,                        dataType: "jsonp",                }); $('div.WikiaPageContentWrapper').prepend(' Extensions enabled.'); }); });