User:Shufflertoxin/global.js

importScriptPage('MediaWiki:WHAM/code.2.js', 'dev'); /* // 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,"));                }            }); });   } });*/