User:Shufflertoxin/global.js

// Edit Summaries window.dev = window.dev || {}; window.dev.editSummaries = { css: false, select: [ '(click to browse)', 'YogsWiki/Others', [ 'Cleanup', 'Spacing', 'Adding description', 'Adding Yogiverse', 'Episodes to Episodes2 Template (only YT)', 'Grammar/spelling' ]   ] }; // WHAM WHAMDelay = 100; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:QuickDiff/code.js',        "u:dev:MediaWiki:Standard_Edit_Summary/code.js",        "u:dev:MediaWiki:ChatOptions/code.js",        "u:dev:MediaWiki:WHAM/code.2.js",        "u:dev:MediaWiki:AjaxBatchDelete/code.2.js"    ] }); // TWEAKS $(function { $('  VSTF  ').insertAfter('.search-container'); $('  YOGS  ').insertAfter('.search-container'); $('  CC  ').insertAfter('.search-container'); $('Admins').insertBefore('.AccountNavigation .subnav li:first'); $('RC').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { // Global edit count for user    if ($("#UserProfileMasthead").length === 0) {        return;    } else {        var username;        username = $("h1").text;        $(function { $.ajax( {               dataType: "jsonp",                url: "http://community.wikia.com/api.php?action=query&list=users&ususers="+username+"&usprop=editcount&format=json",                success:function(data) {                    if(typeof(data.query.users[0].editcount) == "undefined") {                       return;                    }                    $('  global edits  ').insertAfter(".tally");                    document.getElementById("globaleditcount").innerHTML = data.query.users[0].editcount;                    $("#globaleditcount").text( $("#globaleditcount").text.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"));                }            }); });   } });