MediaWiki:Wikia.js

/* Add modules to the right rail */ var rightRailModules = { config: { loadOnNamespaces: [0] },	checkRail: 0, addModules: function { var railHasLoaded = $("#WikiaRail .module").length > 0; if (railHasLoaded) { clearInterval(this.checkRail); this.addCTABanner; }			},	addCTABanner: function { var	addBefore = $('#WikiaRail #WikiaRecentActivity'), bannerHTML = '  '; addBefore.before(bannerHTML); },	init: function { var thisObject = this; if (($.inArray(mw.config.get('wgNamespaceNumber'), this.config.loadOnNamespaces) > -1) && !mw.config.get('wgIsMainPage')) { this.checkRail = setInterval(function { thisObject.addModules; }, 750); }			} } $(function {	rightRailModules.init; });