User:Fubsy/global.js

/** deletion buttons defined below **/ window.fdButtons = []; window.fdButtons.push(   {        summary: 'Blank Page',        label: 'Blank'    },    {        summary: 'Should have been a blogpost.',        label: 'Blog'    },    {        summary: 'Page is too heavily based off copyrighted content.',        label: 'Copy'    },    {        summary: 'Discontinued/Disbanded',        label: 'Disband'    },    {        summary: 'Housekeeping',        label: 'House'    },    {        summary: 'The page is about a group or character that is inactive. Only active OCs/groups are allowed as mainspace articles.',        label: 'Inact'    },    {        summary: 'A staff member is currently working to restore your page, no worries, this is just simple maintenance and it will be back up soon!',        label: 'Maint'    },

{       summary: 'Marked for Deletion', label: 'Marked' },   {        summary: 'Page has not been categorized within 5 days of creation.', label: 'NoCat' },   {        summary: 'Outdated', label: 'Dated' },   {        summary: 'Author Request', label: 'Request' },   {        summary: 'Spam', label: 'Spam' },   {        summary: 'Page contains extensive amount of plagiarized content.', label: 'Theft' },   {        summary: 'Only content was "WIP" or a border.', label: 'WIP' },

); /** convenience stuff **/

window.ajaxPages = ["Some Frequently Updated Page"]; window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Watchlist", "Log", "Contributions"]; window.ajaxIndicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif'; window.ajaxRefresh = 30000; window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page';

/** imported articles **/

importArticles({   type: 'script',    articles: [        /** AJAX **/              'u:dev:AjaxBatchDelete/code.2.js',     // delete multiple pages at once              'u:dev:AjaxBlock/code.js',             // block multiple users at once              'u:dev:AjaxCommentDelete/code.js',     // delete comment in click of a button              'u:dev:AjaxRC/code.js',                // auto-refreshes recent activity    'u:dev:MediaWiki:AjaxUndo/code.js',              // undo an edit in the click of a button        /** MASS & QUICK (EXPEDIENCE) **/    'u:dev:MediaWiki:AnchoredRollback/code.js',      // quicker rollback    'u:dev:FastOldImageDelete/code.js',    'u:dev:MediaWiki:MassBlock/code.js',             // block multiple users at once              'u:dev:MassProtect/code.js',           // protect multiple pages at once              'u:dev:Message/code.js',               // message multiple users at once 'w:c:dev:MarkForDeletion/code.js',      // quickly mark page for deletion 'u:dev:QuickDiff/code.js',            // view diff links on pages quickly 'u:dev:QuickToolsv2/code.js',     // useful module containing admin tools 'u:dev:Quick_Management/code.js',     // quickly manage a user 'u:dev:QuickThreads/code.js',         // quickly remove a message on a thread 'u:dev:WHAM/code.2.js',               // more quick user management tools /** FILTERING & DATA COLLECTION/DISPLAY **/ 'u:dev:MediaWiki:CatNav/code.js',               // filter pages by multiple categories 'u:dev:QuickCreateUserPage/code.js',  // quickly create user page 'u:dev:DupImageList/code.js',         // generates list of duplicate images 'u:dev:ListFiles/code.js',            // Special:UnusedFiles has list format 'u:dev:UTCClock/code.js',             // generates clock in UTC time 'u:dev:MediaWiki:ViewRemoved/code.js',          // view removed messages in threads /** EDITING **/ 'u:dev:CommentPreview/code.js',                 // preview mode in comments 'u:dev:MediaWiki:FindAndReplace/code.js',       // find & replace tool in source mode 'u:dev:NullEditButton/code.js',       // edit a page and purge it (but better) 'u:dev:MediaWiki:PageMakerPro/code.js',         // improved page creation module 'u:dev:MediaWiki:PowerPageMaker/code.js'        // (^^) ] });

/** displays list of unused files on Special:UnusedFiles **/

if (mediaWiki.config.get("wgPageName") === "Special:UnusedFiles") { $(function {		var str = "";		$('.gallerytext > a').each(function  { str += decodeURIComponent(this.href.substring(this.href.indexOf("File"))) + "\n"; });		var $textarea = $(' ');		$textarea.val(str);		$('.gallery').before($textarea);	}); }

/** add, change, or remove categories to multiple pages **/ massCategorizationDelay = 1000; importScriptPage('MediaWiki:MassCategorization/code.js', 'dev');