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',        'u:dev:MediaWiki:ViewRemoved/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 } );

// add link to discussions log $(function {   if (wgPageName == "Special:LookupUser") {        var user = $('input[name="target"]').attr('value').replace(" ","+");        $('#mw-content-text > ul:nth-of-type(2) > li').append('  |  Discussions Log');    } });