User:Ozuzanna/global.js

/* Configs */ cacheSkip = []; cacheSkipLimit = 1000;

/* Imports */ importArticles({   type: "script",    articles: [        'u:dev:AjaxBatchDeleteV2/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:CategoryRenameAuto-update/code.js',        'u:dev:ContribsLink/code.js',        'u:dev:FileUsageAuto-update/code.js',        'u:a:MediaWiki:Gadget-HotCat.js',        'u:dev:MassCategorization/code.js',        'u:dev:MassNullEdit/code.js',        'u:dev:NoImageLightbox/code.js',        'u:c:User:Ozuzanna/chatconnect.js',        'u:c:User:Ozuzanna/OldFilePages.js',        'u:c:User:Ozuzanna/textspecial.js'    ] });

var usergroups = mw.config.get('wgUserGroups').join(' '), page = mw.config.get('wgPageName'), specialpage = mw.config.get('wgCanonicalSpecialPageName'), title = mw.config.get('wgTitle'), href, link;
 * (function($, mw) {

if (specialpage === "Contributions") { /* Annihilate */ if (usergroups.indexOf('rollback') + usergroups.indexOf('sysop') > -2) importScriptPage('User:Ozuzanna/annihilate.js','c'); /* IP lookup */ if (title.split('.').length == 4) { href = 'http://myip.ms/info/whois/' + page.split('/')[1], link = ' (lookup)'; $('.masthead-info').find('h2').html(link); } }

/* Create an edit link on Special:MovePage for easy redirecting */ if (page.split('/')[0] === 'Special:MovePage') { href = $('fieldset').find('a').attr('href') + '?action=edit', link = ' (edit)'; $('#mw-movepage-table').find('a').first.after(link); }

/* Unchecks redirects when moving files */ if (page.indexOf("Special:MovePage/File:") !== -1) { $('#wpLeaveRedirect').removeAttr('checked'); }

/* Show abuse log entries in Special:Log/newusers */ if ("Special:Log/newusers".indexOf(page) !== -1) { $('li.mw-logline-newusers').each(function {   href = '/wiki/Special:AbuseLog?wpSearchUser=' + $(this).children('a.new.mw-userlink,a.mw-userlink').attr('href').substring(11),    link = ' (abuse)';    $(this).append(link);  }); }

/* Create move link on Special:ListFiles for users' files listed */ if (page.split('/')[0] === "Special:ListFiles") { $('td.TablePager_col_img_name').each(function {   link = ' (move)';     $(this).append(link);  }); }

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