User:Final Chidori/global.js

/* Advanced tool script added by the walrus Princess Platinum */ $.getScript('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Advanced%20Tools.js'); /* Misc. */ importArticles({   type: "script",    articles: [	"w:c:dev:MarkForDeletion/code.js",	"w:c:dev:AutoEditDropdown/code.js",	"w:c:dev:PurgeButton/code.js",	"w:c:dev:RevealAnonIP/usercode.js",	"w:c:dev:ListFiles/code.js",	"w:c:dev:View_Source/code.js",	"w:c:dev:ReferencePopups/code.js",	"w:c:dev:PortableCSSPad/code.js",	"w:c:dev:QuickCreateUserPage/code.js",	"w:c:dev:AllPagesHideRedirect/code.js",	"w:c:dev:BackToTopButton/code.js",	"w:c:dev:AjaxBatchDelete/code.js",	'w:c:dev:RelatedDiscussionsModule/code.js',	"w:c:admintools:MediaWiki:Wikia.js/cancelButton.js",    ] }); /* Chat */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); importScriptPage('MessageBlocker/code.js', 'dev'); importScriptPage('User:Madnessfan34537/multikick.js','cod'); importScriptPage('User:Joeytje50/tabinsert.js', 'runescape'); /* /kick  */ if (wgUserGroups.indexOf('chatmoderator')!=-1 || wgUserGroups.indexOf('sysop')!=-1) { $(function {	$('[name="message"]').keypress(function(e) { if (e.which == 13) { if (this.value.split(' ')[0] == '/kick') { e.preventDefault; var toKick = this.value.replace(/^\/kick /,'') if (!$('#WikiChatList [data-user="'+toKick+'"]').length) { confirm(toKick + ' is not in this chat. Still try to kick him?')?mainRoom.kick({name: toKick}):undefined; } else { mainRoom.kick({name: toKick}) }				this.value = ''; return true; }		}	}); }); } /* Auto updating recent changes opt-in */ ajaxPages = ["Special:WikiActivity","Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; importScriptPage('AjaxRC/code.js', 'dev'); /* Bye bye image popups */ window.wgEnableImageLightboxExt = false; function changeimagelinks { $('#WikiaArticle, .LatestPhotosModule, #article-comments').unbind('click.lightbox'); var a = document.getElementsByTagName('a'); for(var t = 0; t < a.length; ++t) { var a2 = a[t]; var img = a2.getElementsByTagName('img'); if(img[0] != null) { if (a2.href.indexOf('images.wikia.com') != -1) { var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1); a2.setAttribute('href',link); }		}	} } addOnloadHook(changeimagelinks); /* Adds handy links to Toolbar */ $('ul.tools li:first-child').before('User Page'); $('ul.tools li:first-child').before('Logs'); $('ul.tools li:first-child').before('Recent changes'); $('ul.tools li:first-child').before('Wiki Activity</li>'); /* Move File Code */ if (wgPageName.indexOf("Special:MovePage/File:") != -1 || (wgCanonicalNamespace == "File" && Storage)){ LIRoptions = { bottomMessage: 'This appears below the buttons on Special:MovePage', editSummary: 'Updating file link (automatic)', singleButtonText: 'Rename and replace', queueButtonText: 'Rename and add to queue' }  importScriptPage("FileUsageAuto-update/code.js/min.js", "dev"); } // Rename and delete buttons. Using it on MLP wiki (mlp.wikia.com) if (wgCanonicalNamespace == "File" && document.URL.indexOf("action=delete") == -1){ var escapedPageName = wgPageName; escapedPageName = encodeURIComponent(escapedPageName).replace(/'/g, "%27"); $('header.WikiaPageHeader').append("<a class='wikia-button' href='?action=delete'>Delete</a> <a class='wikia-button' href='/wiki/Special:MovePage/"+escapedPageName+"'>Rename</a>"); } // Variables (Auto protect-delete) var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'V' }; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'S' }; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'HK' }; fdButtons[fdButtons.length] = { 'summary': 'Terms of Use violation', 'label': 'ToU' }; // Import for Delete Protect importScriptPage('User:The Mol Man/FastDeleteProtect.js', 'a');

$('svg.wds-global-navigation__logo-fandom').replaceWith('<img src="http://vignette4.wikia.nocookie.net/csydes-test/images/2/2d/Wikia_The_Home_of_Fandom_250x30.png/revision/latest?cb=20161009023141" />');