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:a:MediaWiki:Gadget-HotCat.js',        'u:dev:MassCategorization/code.js',        'u:dev:MassNullEdit/code.js',        'u:dev:NoImageLightbox/code.js',        'u:community:User:Ozuzanna/chatconnect.js',        'u:community:User:Ozuzanna/OldFilePages.js',        'u:community:User:Ozuzanna/textspecial.js'    ] });

/* Conditional imports */ var ug = wgUserGroups.join(' '); if (mw.config.get('wgCanonicalSpecialPageName') === "Contributions" && (ug.indexOf('rollback') + ug.indexOf('sysop') > -2)) { importScriptPage('User:Ozuzanna/annihilate.js','community'); }

if (wgPageName.indexOf("Special:MovePage/File:") != -1 || mw.config.get('wgCanonicalNamespace') === "File" && Storage && mw.config.get('wgSiteName') !== '2007scape Wiki') { LIRoptions = { bottomMessage: 'This appears below the buttons on Special:MovePage', editSummary: 'Updating file link (automatic)', singleButtonText: 'Rename and replace', queueButtonText: 'Rename and add to queue' }  importScriptPage("FileUsageAuto-update/code.js", "dev"); }

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

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

/* Add quick link to IP location lookup for anon contributors */ if (mw.config.get('wgCanonicalSpecialPageName') === "Contributions" && ($('a:contains("Why create an account?")').length == 1)) { var href = 'http://myip.ms/info/whois/' + mw.config.get('wgPageName').split('/')[1], lookup = ' (lookup)'; $('.masthead-info').find('h2').html(lookup); }

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

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