MediaWiki:FixFeaturedArticlesImages.js

(function {    if (window.FixFeaturedArticlesImagesLoaded) {        return;    }    window.FixFeaturedArticlesImagesLoaded = true;    function execute  {        $('#WikiaAdInContentPlaceHolder img').each(function  { $(this).attr('src', $(this).attr('src').replace(/zoom-crop/, 'fixed-aspect-ratio') + '&fill=transparent') });   }    if ($('.WikiaRail').hasClass('loading')) {        $('.WikiaRail').on('afterLoad.rail', execute);    } else {        execute;    } });