User:Maulle/global.js

/******************************/ /*   Special:Chat Scripts    */ /******************************/ var ChatHacksLoaded = true; if (ChatHacksLoaded === true) { ChatHacksLoaded = true; importScriptPage('ChatOptions/code.js', 'dev'); importScriptPage('MessageBlocker/code.js', 'dev'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); } /***************************/ /*   Site-wide Scripts    */ /***************************/ AjaxRCRefreshText = 'Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = [ "Special:RecentChanges", "Special:WikiActivity", "Special:Contributions", "Special:NewFiles", "Special:BlockList", "Special:Forum", "Special:Chat", "Special:Specialpages", "Special:Random", "Special:allmessages", "Special:Recentchanges", "Special:Log" ];

/* Creates Back To Top Button In Footer */ var Speed = 50; /* InactiveUsers */ InactiveUsers = { months: 1 }; /* AdvancedOasisUI */ window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, DefaultSourceMode: true, lightbox: false, randomPageLimitedTo: 'false', activity2RC: false, userLang: false };

importArticles({	type: "script",	articles: [       // Useful buttons        "w:c:dev:WHAM/code.js",	"w:c:dev:PageMakerPro/code.js",        "w:c:dev:QuickTools/advanced.js",        "w:c:admintools:MediaWiki:Wikia.js",	"w:c:dev:PortableCSSPad/code.js",        // Fix File Delete	"w:c:dev:FastOldImageDelete/code.js",	"w:c:dev:FixWantedFiles/code.js",	"w:c:dev:CacheCheck/code.js",	"w:c:dev:ListFiles/code.js",        // Ajax        "w:c:dev:AjaxBatchDelete/code.js",        "w:c:dev:AjaxUndo/code.js",        "w:c:dev:AjaxRC/code.js",        // Other Stuff        "w:c:dev:AdvancedOasisUI/code.js",	"w:c:dev:RevealAnonIP/code.js",	"w:c:dev:View_Source/code.js",	"w:c:dev:Thread Inspection/code.js",	"w:c:dev:InactiveUsers/code.js",        "w:c:dev:CategoryRenameAuto-update/code.js",        // Recent Add-ons        "w:c:dev:AjaxBatchDeleteV2/code.js",        "w:c:dev:MassCategorization/code.js",        "w:c:answers:MediaWiki:Gadget-HotCat.js", "w:c:dev:Message/code.js", "w:c:dev:FileUsageAuto-update/code.js", "w:c:dev:OldFilePages/code.js", "w:c:dev:FastDelete/code.js", "w:c:dev:FixMultipleUpload/code.js", "w:c:dev:MassNullEdit/code.js", // Kill Tool "w:c:answers:User:The Mol Man/Annihilate.js", ] });

// Fast delete buttons var fdButtons = []; fdButtons[fdButtons.length] = {'summary': 'vandalism', 'label': 'V'   }; fdButtons[fdButtons.length] = {'summary': 'spam',            'label': 'S'    }; fdButtons[fdButtons.length] = {'summary': 'cleanup',                                'label': 'C↑'  }; fdButtons[fdButtons.length] = {'summary': 'Violation of the ToU',                'label': 'ToU'};

// Skin Switch Button for monobook to oasis and vice versa // and for monobook and oasis to wikiamobile // Intended to be edited later but idk

$( function {	if ( !document.getElementById( 'ca-skins' ) ) {		if ( skin === 'oasis' || skin === 'wikia' ) {			$( 'MB' ).appendTo( '#AccountNavigation' ); $( 'WM' ).appendTo( '#AccountNavigation' );		} else {			$( 'Oasis' ).appendTo( '#p-cactions > .pBody > ul' ); $( 'Mobile' ).appendTo( '#p-cactions > .pBody > ul' );		} 	} } );