User:RisenPhoenix/global.js

//purge button config PurgeButtonText = 'Purge';

//messageblock config var MessageBlock = { title : 'Blockage', message : 'You have been blocked from editing for a period of $2 for $1. Please review the site policy during this time. If you believe this was done in error, please contact an admin. ', autocheck : true };

//last edited config window.lastEdited = { avatar: true, size: true, diff: true, comment: true, time: true };

//chat reload config // Refresh every 1 mins window.chatReloadTime = 100000;

//cache check config cacheSkip = []; cacheSkipLimit = 1000;

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

var qtEnableUserPageOverwrite = true;

//ajax rc config window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];

batchDeleteDelay = 1000;

if (wgDBname !== 'admintools') { // Script imports window.importArticles( {   type: 'script',    articles: [      'w:dev:QuickCreateUserPage/code.js',       'u:dev:LastEdited/code.js',      'u:dev:View_Source/code.js',      'u:dev:CacheCheck/code.js',      'u:dev:ChatReload/code.js',      "w:c:dev:RevealAnonIP/usercode.js",      'u:dev:PurgeButton/code.js',      'u:dev:WHAM/code.2.js',      'u:dev:AjaxRC/code.js',      'u:dev:AjaxUndo/code.js',      'u:dev:RelocateEditDiscussionButtons/code.js',      "u:dev:ContribsLink/code.js",      'u:dev:QQX/code.js',      'u:dev:Thread Inspection/code.js',      'u:dev:SkinSwitchButton/code.js',      'u:dev:RedirectManagement/code.js',      'u:dev:WikiaNavBarHider/code.js',      'u:dev:CleanWantedFiles/code.js',      'u:dev:AjaxBatchDelete/code.2.js',      'u:dev:MessageBlock/code.js',      'w:c:community:User:Ozuzanna/nuke.js',      'u:dev:NoImageLightbox/code.js',      'u:admintools:MediaWiki:Common.js/powerUser.js', 'u:admintools:MediaWiki:Common.js/sitenotice.js', 'u:admintools:MediaWiki:Common.js/extraRollbacks.js', 'u:admintools:MediaWiki:Common.js/ajaxRollback.js',

] } ); }

//stuff made by @452

//Restore ogg_player info link click - Wikia has been informed of this problem, and the cause. $(".ogg_player a.image").each(function{ $(this).unbind("click").bind("click", function { window.open($(this).prop("href"));  }); })

// stuff I found in @Ozuzanna's global.js

var c = mw.config.get( [   'wgAction',    'wgArticlePath',    'wgCanonicalNamespace',    'wgCanonicalSpecialPageName',    'wgDBname',    'wgNamespaceNumber',    'wgPageName',    'wgUserGroups',    'wgSiteName',    'skin',    'wgTitle' ] ), articlePath = c.wgArticlePath.slice(0,-2), array = [], escapedPage = encodeURIComponent(c.wgPageName);
 * (function($, mw) {

switch (c.wgCanonicalSpecialPageName) { /* Add IP lookup on anon contribs */ case "Contributions": if ($('#anontalktext').length && c.wgTitle.split('.').length == 4) $('.masthead-info h2').html('(lookup)'); break; }

/* Show abuse log entries in Special:Log/newusers */ if ("Special:Log/newusers".indexOf(c.wgPageName) !== -1) { $('.mw-logline-newusers').each(function {   $(this).find('.mw-usertoollinks').find('a:last').after(' | abuse');  }); }

/* Create toolbar links */ function addToolbarTool(param,text) { if ($('.toolbar > .tools').length) { $('.toolbar > .tools > li:last').after(     $('').append('' + text + '')    ); } } addToolbarTool("&allowuserjs=0","No User JS"); addToolbarTool("&allowusercss=0","No User CSS"); addToolbarTool("&usesitejs=0","No Site JS"); addToolbarTool("&usesitecss=0","No Site CSS"); /* Auto-submit bugged pages for deletion */ if (c.wgAction == "delete" && $('#ca-edit').text.trim == "Create") $('#mw-img-deleteconfirm,#deleteconfirm').submit;

/* Untick minor edit box after 10 seconds when editing */ if (c.wgAction === 'edit' || c.wgAction === 'submit') { setTimeout(function {   if ($('#wpMinoredit').attr('Checked'))       $('#wpMinoredit').removeAttr('checked');  }, 10000); }

}) (this.jQuery, this.mediaWiki);