MediaWiki:ConsistentModules/code.js

/** * Name:       ConsistentModules * Description: Makes Rail modules more consistent until Wikia updates *             other Rail modules * Author:     KockaAdmiralac <1405223@gmail.com> * Version:    v1.0 */ (function {   function execute {        $('#WikiaRail .module').removeClass('module').addClass('rail-module');    }    var clas = $('#WikiaRail').attr('class');    if(clas && clas.split(/\s+/).indexOf('loaded') === -1) {        $('#WikiaRail').on('afterLoad.rail', execute);    } else {        execute;    } });