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:dev:PortableCSSPad/code.js",        "w:c:answers:MediaWiki:Gadget-HotCat.js",        "w:c:dev:Message/code.js",        // Fix File Delete	"w:c:dev:FastOldImageDelete/code.js",	"w:c:dev:FixWantedFiles/code.js",        "w:c:dev:FileUsageAuto-update/code.js",        "w:c:dev:OldFilePages/code.js",	"w:c:dev:ListFiles/code.js",        "w:c:dev:FixMultipleUpload/code.js",        "w:c:dev:MassNullEdit/code.js",        "w:c:dev:MassCategorization/code.js",        "w:c:dev:CategoryRenameAuto-update/code.js",	"w:c:dev:CacheCheck/code.js",        // Ajax        "w:c:dev:AjaxBatchDeleteV2/code.js",        "w:c:dev:AjaxUndo/code.js",        "w:c:dev:AjaxRC/code.js",        "w:c:dev:AjaxTemplate/code.js",        "w:c:dev:AjaxPatrol/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:SpellCheckModule/code.js", "w:c:dev:NoImageLightbox/code.js", "w:c:dev:DisplayClock/code.js", "w:c:dev:Removed Board Thread Messages Review/code.js", "w:c:dev:AutoEditDropdown/code.js", "w:c:dev:QuickComments/code.js", "w:c:dev:RecentChangesModule/code.js", "w:c:dev:Category_Sorter/code.js", // Kill Tool "w:c:answers:User:The Mol Man/Annihilate.js", // Admin Tools "w:c:admintools:MediaWiki:Wikia.js/cancelButton.js", "w:c:admintools:MediaWiki:Wikia.js/editCount.js", "w:c:admintools:MediaWiki:Wikia.js/userRightsIcons.js", "w:c:admintools:MediaWiki:Wikia.js/uploadPhoto.js", "w:c:admintools:MediaWiki:Wikia.js/editButton.js", // Random stuff "w:c:MediaWiki:Snow.js", // Code (not working) //       "w:c:dev:Code/code.js", //       "w:c:dev:Code/javascript.js", //       "w:c:dev:Code/css.js", ] });

// 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' );		} 	} } );