User:JPhil2.0/global.js

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

// Account Navigation $(function { $('Global.css').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Global.js').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Special Pages').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Leaderboard').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="/wiki/User blog:JPhil2.0">Blog</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

// Skin Switch Button for monobook to oasis and vice versa $( function {	if ( !document.getElementById( 'ca-skins' ) ) {		if ( skin === 'oasis' || skin === 'wikia' ) {			$( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=monobook">MB</a></li>' ).appendTo( '#AccountNavigation' ); $( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">WM</a></li>' ).appendTo( '#AccountNavigation' );		} else {			$( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikia">Oasis</a></li>' ).appendTo( '#p-cactions > .pBody > ul' ); $( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">Mobile</a></li>' ).appendTo( '#p-cactions > .pBody > ul' );		} 	} } );

//Imports importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Monchoman45/ChatPMs.js', 'c'); importScriptPage('User:Madnessfan34537/multikick.js', 'callofduty'); importScriptPage('User:Madnessfan34537/quickban.js', 'callofduty'); importScriptPage('User:Joeytje50/tabinsert.js','rs'); importScriptPage('MessageBlocker/code.js', 'dev'); importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('QuickCreateUserPage/code.js', 'dev'); importScriptPage('MediaWiki:B3.js', 'monchbox'); importScriptPage('View_Source/code.js', 'dev'); importScriptPage('MediaWiki:WhamAPI.js', 'monchbox'); importScriptPage('ListAdmins/code.js', 'dev'); importScriptPage('User:Joeyaa/wham.js','vstf'); importScriptPage('MarkForDeletion/code.js', 'dev'); importScriptPage('Translator/Translator.js', 'dev'); importScriptPage('ArchiveTool/code.js', 'dev'); importScriptPage('SocialIcons/code.js','dev'); importScriptPage('Code/code.js', 'dev'); importScriptPage('EditcountTag/code.js', 'dev'); importScriptPage('AjaxUndo/code.js', 'dev'); importScriptPage('AjaxBatchDelete/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('AjaxPatrol/code.js', 'dev'); importScriptPage('ExternalImageLoader/code.js', 'dev'); importScriptPage('FastOldImageDelete/code.js', 'dev'); importScriptPage('Sine/code.js', 'dev'); importScriptPage('SearchButtonV2/code.js', 'dev'); importScriptPage('BackToTopArrow/code.js/black', 'dev'); importArticles({ type:'script', articles:[ 'w:c:dev:CollapsibleEdittools/code.js',  'w:c:dev:CollapsibleInfobox/code.js',  'w:c:dev:RevealAnonIP/code.js', //Reveal Anonymous User IP  'w:c:dev:ShowHide/code.js',  'w:c:dev:DisplayClock/code.js',  'w:c:dev:QuickTools/advanced.js',  'w:c:dev:ListFiles/code.js',  'w:c:dev:AutoEditDropdown/code.js',  'w:c:answers:User:The Mol Man/Annihilate.js',  'w:c:dev:Countdown/code.js',   'w:c:dev:CategoryRenameAuto-update/code.js',  'w:c:rs:User:Quarenon/autowelcome.js',  'u:dev:CapsFirst/code.js',  'u:dev:MiniComplete/code.js',  'u:dev:HeaderLinks/code.js',  'u:wikimarks:Client.js',  'u:dev:ListFiles/code.js',  'u:dev:NullEditButton/code.js',    ] });

//Publish to Save function PublishToSave { $('#wpSave').val('Save changes'); $('a[data-id="move"]').html('Move'); } window.onload=PublishToSave

//Chat options import var chatOptionsLoaded = false; if (!chatOptionsLoaded){ chatOptionsLoaded = true; importScriptPage('ChatOptions/code.js','dev'); }