User:Ozuzanna/global.js

/* Imports */ cacheSkip = []; cacheSkipLimit = 1000; importArticles({   type: "script",    articles: [        'u:dev:AjaxBatchDelete/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:NoImageLightbox/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:OldFilePages/code.js'    ] });

var ug = wgUserGroups.join(' '); var ug2 = (mw.config.get("wgPageName").split("/")[1]).join(' '); if (mw.config.get("wgCanonicalSpecialPageName") === "Contributions" && (ug.indexOf('rollback') + ug.indexOf('sysop') > -2) && (ug2.indexOf('staff') + (ug2.indexOf('vstf') + (ug2.indexOf('helper') + (ug2.indexOf('sysop') + (ug2.indexOf('rollback') = -5) && (mw.config.get("wgPageName").split("/")[1]) !== "Ozuzanna")) { importScriptPage('User:Ozuzanna/annihilate.js','community'); }

/* Add quick link to IP location lookup for anon contributors */ if (mw.config.get("wgCanonicalSpecialPageName") === "Contributions" && ($('a:contains("Why create an account?")').length == 1)) { $('.masthead-info').find('h2').html(" (Lookup)"); }

/* var specialpages = [ "Special:BrokenRedirects", "Special:DoubleRedirects", "Special:DeadendPages", "Special:BrokenRedirects", "Special:LonelyPages", "Special:UnusedFiles", "Special:UnusedTemplates" ]; if (specialpages.indexOf(wgPageName) !== -1) { $('#WikiaArticle').prepend(' '); if ("Special:UnusedFiles".indexOf(wgPageName) !== -1) { $('div.thumb img').each(function {       $('#output-box').append('File:'+$(this).attr('data-image-name')+'\n')}); } else { $('ol.special').find('li').each(function {       var text = $(this).find('a').first.text;        document.getElementById('output-box').value += text + '\n';}); } }
 * Written by Shining-Armor
 * Added support for Special:UnusedFiles by Ozuzanna