User:Merrystar/global.js

// ***************************************************************** // Load various external scripts // ***************************************************************** importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:FastDelete/code.js',      ] });

// ***************************************************************** // 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': 'Requested Deletion', 'label': 'requested'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'bad_page'}; // end Custom automatic buttons

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

//userpage var qtUserPageTemplate = '';

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

//gear fixer (from uberfuzzy) $('a[data-name="customize"]').html( function{ return $(this).parent.find('img').detach } ); //fix lookupuser link $(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 ) );    } });