Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
//<nowiki>

//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":false,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>
 /*jshint scripturl:true*/
mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
/*jshint scripturl:false*/

   function roundDecimals(v, decimals) {
        decimals = decimals || 2;
        var f = Math.pow(10, decimals);

        return Math.round(v * f) / f;
    }

    /////////////////////////////////////////
(function ($) {

    var namespace = mw.config.get('wgCanonicalNamespace');
    var $fInfo = $('.fileInfo');

    if ($fInfo.length) {
        var str = $fInfo.text(),
            i = str.indexOf('Pixel'),
            px = str.substring(1, i).replace(/\./g, '').split(' × '),
            mpx = parseInt(px[0]) * parseInt(px[1]) / (1024 * 1024);

        $fInfo.prepend('<b>' + roundDecimals(mpx) + ' Mpx</b> ');
    }
})(jQuery);


mw.loader.load("User:Legoktm/massrename.js");