User:JPhil2.0/global.js

/* =========================================================================    JS for monobook and oasis applied to all wikia wikis. @author JPhil2.0 ========================================================================== */ importScriptPage('CapsFirst/code.js', 'dev'); importScriptPage('WHAM/code.2.js', 'dev'); importScriptPage('PortableCSSPad/code.js', 'dev'); importScriptPage('HeaderLinks/code.js', 'dev'); importScriptPage('View_Source/code.js', 'dev'); importScriptPage('SkinSwitchButton/code.js', 'dev'); importScriptPage('QuickComments/code.js', 'dev'); importScriptPage('MediaWiki:VectorSkin.js', 'coreychambers'); importScriptPage('RevealAnonIP/usercode.js', 'dev' ); importScriptPage('User:Wildream/SoundNotifications.js', 'ru.community'); importScriptPage('User:Wildream/ChatQuote/code.js', 'ru.community'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); $.getScript('https://raw.github.com/sactage/wikia-js-snippets/master/ChatOptions.js');

/* Ajax Customization */ window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; window.ajaxIndicator = 'http://www.stspress.com/wp-content/themes/bravo/images/ajax-loader.gif'; importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('AjaxTemplate/code.js', 'dev'); importScriptPage('AjaxBatchDeleteV2/code.js', 'dev'); importScriptPage('AjaxUndo/code.js', 'dev'); importScriptPage('AjaxPatrol/code.js', 'dev' );

/* QuickCreateUserPage Customization */ var qtUserPageTemplate = ""; var qtEnableUserPageOverwrite = true; importScriptPage('QuickCreateUserPage/code.js', 'dev');

/* QuickCreateMessageWallGreeting Customization */ var qtMessageWallGreetingTemplate = ''; var qtEnableMessageWallGreetingOverwrite = true; importScriptPage('QuickCreateMessageWallGreeting/code.js', 'dev');

/* Custom Account Navigation */ $(function { $('Sysops').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('User blog').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Chat').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Contributions').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="http://community.wikia.com/wiki/User:JPhil2.0/global.css">Global.css</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="http://community.wikia.com/wiki/User:JPhil2.0/global.js">Global.js</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

/* Wiki Activity to Recent Changes */

if (mw.config.get('skin') === 'oasis') { $(function {       $("a[data-canonical='wikiactivity']").attr('href', '/wiki/Special:RecentChanges').text('Recent Changes');        if (mw.config.get('wgCityId') == 177) {            $("a[data-canonical='chat']").click(function (event) { event.preventDefault; });       }    }); }

/* 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("<a style=\"color:#F0F0F0\" href=\"http://myip.ms/info/whois/" + (mw.config.get("wgPageName").split("/")[1]) + "\"> (Lookup)</a>"); }

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/autoedit.js&action=raw&ctype=text/javascript');

/* Various other Useful Scripts */ /* 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:PageMakerPro/code.js",        "w:c:answers:MediaWiki:Gadget-HotCat.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",        // Other Stuff        "w:c:dev:AdvancedOasisUI/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:Removed Board Thread Messages Review/code.js", "w:c:dev:AutoEditDropdown/code.js", "w:c:dev:QuickComments/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/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", ] });