User:President Dubstep/global.js

if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('PM'); }

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('MessageBlocker/code.js', 'dev'); importScriptPage('User:Monchoman45/ChatPMs.js', 'c'); importScriptPage('User:Joeytje50/tabinsert.js','rs'); importScriptPage('User:Madnessfan34537/multikick.js', 'callofduty'); importScriptPage('User:Madnessfan34537/quickban.js', 'callofduty'); 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: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:dev:HideRail/code.js',  'w:c:dev:Countdown/code.js',   'u:dev:CapsFirst/code.js',  'u:dev:MiniComplete/code.js',  'u:dev:HeaderLinks/code.js',    ] });

// ******************* // Custom Buttons // ******************* $(function { $('Special Pages').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('Sandbox').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('Status').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('Rights</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Leaderboard">Leaderboard</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/User blog:President Dubstep">Blog</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Chat">Chat</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Following">Following</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Contributions/President Dubstep">Contribs</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="http://community.wikia.com/wiki/User:President Dubstep/global.css">Global.css</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="http://community.wikia.com/wiki/User:President Dubstep/global.js">Global.js</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="http://community.wikia.com/wiki/Template:User:President Dubstep">Userpage</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

// ******************* // Custom edit buttons // *******************

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/b/b4/Button_category03.png", "speedTip": "Category", "tagOpen": "[[Category:",    "tagClose": "]]", "sampleText": "Category name"}; } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/3/3b/Button_template_alt.png", "speedTip": "Template", "tagOpen": "", "sampleText": "Template"}; } if (wgAction == "edit" || wgAction == "submit") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#redirect",               "tagClose": "", "sampleText": "PAGE"}; } }

// *********************** // End custom edit buttons // ***********************

// ********** // Fastdelete // ********** var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Unnecessary', 'label': 'Unnec'}; fdButtons[fdButtons.length] = { 'summary': 'Not needed', 'label': 'nn'}; fdButtons[fdButtons.length] = { 'summary': 'merged/clonepage', 'label': 'm/cp'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'Housekeeping'};

// Import for Delete & Delete and Protect buttons if (wgNamespaceNumber == 0) { importScriptPage('User:The Mol Man/FastDeleteProtect.js', 'a'); } else { importScriptPage('FastDelete/code.js', 'dev'); }; // ************** // End Fastdelete // **************

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

// Skin Switch Button from Monobook to Oasis $( 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' );		} 	} } );

/* Extra Links to Toolbar */ $('ul.tools li:first-child').before('<a href="http://c.wikia.com/wiki/Special:RandomWiki">Random Wiki</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Special:Log/block">Block Log</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Special:Log">Logs</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Special:RecentChanges?hideenhanced=1&hidelogs=1">Recent changes</a></li>');