User:StarmanW/global.js

// AjaxRC configs window.ajaxSpecialPages = ['Newwikis', 'Recentchanges', 'Log', 'Images']; window.ajaxRefresh = 1000;

// Page Creator configs window.pageCreatorConfig = { namespaces: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 110, 111, 828, 829, 1202] };

// Imports importArticles({   type: "script",    articles: [        'u:dev:AjaxRC/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:ContribsLink/code.js',        'u:dev:DisplayTimer/code.js',        'u:dev:LastEdited/code.js',        'u:dev:Linksweeper/code.js',        'u:dev:MastheadGender/code.js',        'u:dev:PageCreator/code2.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:RevealAnonIP/code.js',        'u:dev:SearchSuggest/code.js',        'u:dev:UnhideUserMasthead/code.js',        'u:dev:ViewRemoved/code.js',        'u:dev:View_Source/code.js',        'u:starmanw:QuickLogs/code.js',    ] });

$(function {    var headerElem = [        ' WBB  ',        ' RecentChanges  ',        ' Admins  ',        ' Global.js  '    ];

// Header $.each(headerElem, function (i, elem) {       $(elem).insertBefore('.wds-global-navigation__search');    });

// Change profile link to contribs link $('.mw-userlink').each(function {        if (!$(this).attr('href').match('.*\:.*\/.*')) {            var linkStr = $(this).attr('href');            $(this).attr('href', linkStr.replace(/.*\:(.*)/g, '/wiki/Special:Contributions/$1'));        }    });

//Remove all MPC $('.youtubeplayer').remove; });