User:Merrystar/global.js

// ***************************************************************** // Load various external scripts // ***************************************************************** importScriptPage('User:Splarka/contribtools.js', 'community'); importScriptPage('FastDelete/code.js', 'dev');

// ***************************************************************** // Custom automatic delete buttons // ***************************************************************** // Adds customizable one-click deletion buttons to any deletable page. // Requires w:User:Splarka/fastdelete.js in appendScript; var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Unused File', 'label': 'bad_image'}; fdButtons[fdButtons.length] = { 'summary': 'Marked for Deletion', 'label': 'bad_page'}; // end Custom automatic buttons

// remove admin link on toolbar $.ready( function { $('li > a[data-tracking="admindashboard/toolbar/admin"]').remove; } );

// use preview on tuesday // importScriptURI('https://internal.wikia-inc.com/index.php?title=MediaWiki:ForcePreview.js&action=raw&ctype=text/javascript'); //

//userpage var qtUserPageTemplate = '';

//ajax cu add-on // importScriptURI( 'https://one.wikia-inc.com/index.php?title=MediaWiki:CU.js&action=raw&ctype=text/javascript' );

//lookupuser gives list-files $(function {	if (mw.config.get("wgCanonicalSpecialPageName") === "LookupUser") {		$("span#lu-tools").append(" | ").append("ListFiles-ify contribs");		$("a#lu-tools-listfilesify").click(function(event) { event.preventDefault; var user = $("span#lu-tools").siblings("a").text; $("div#lookupuser-table_wrapper table#lookupuser-table tr td a[href$='Special:Contributions/" + user + "']").each(function(index, element) {				element.href = element.href.replace("Special:Contributions", "Special:ListFiles");				element.innerHTML = "ListFiles";			}); });	} });

//WHAM importScriptPage('WHAM/code.2.js','dev');