User:Sannse/global.js

//

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

// ***************************************************************** // 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': '* Violation of Wikia\'s Terms of Use ', 'label': 'ToU'}; fdButtons[fdButtons.length] = { 'summary': 'Removed by Wikia staff due to potential copyright issues', 'label': 'copyrt'}; fdButtons[fdButtons.length] = { 'summary': 'Requested deletion', 'label': 'reqst'}; fdButtons[fdButtons.length] = { 'summary': 'Spam ', 'label': 'Spam'}; fdButtons[fdButtons.length] = { 'summary': 'Not suitable for Community Central', 'label': 'CC'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'other'}; // end Custom automatic delete buttons

if(wgNamespaceNumber!=-1) addOnloadHook(function { addPortletLink('p-cactions','/wiki/Special:Prefixindex/' + escape(wgPageName),'Subpages','ca-subpages','Show subages of ' + wgPageName); });

//WHAM importScriptPage('User:Joeyaa/wham.js','vstf');

//gear fixer (from uberfuzzy) $('a[data-name="customize"]').html( function{ return $(this).parent.find('img').detach } );

//ForcePreview

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

//CU tweak

importScriptURI( 'http://internal.vstf.wikia.com/index.php?title=MediaWiki:CU.js&action=raw&ctype=text/javascript' );

//Thingy from Sactage to fix lookupuser

$(function {   if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Contributions' ) {        var target = mw.util.getParamValue( 'target' ) || mw.config.get( 'wgPageName' ).split('/', 2)[1] || null;        if ( !target ) {            return;        }        $( '#contentSub > a:nth-child(9)' ).attr( 'href', 'http://community.wikia.com/wiki/Special:LookupUser?target=' + encodeURIComponent( target ) );    } });

//