MediaWiki:Common.js/mosbox.js

/* Any JavaScript here will be loaded for all users on every page load. */ // ============================================================ // wikiSidething // from Brickipedia // Function: Adds a new sidebar element // // Version 1.5 modified by user:452 // ============================================================ $(function {	if(skin == "oasis") {		$('#WikiaRail').bind('DOMNodeInserted', function(event) { //fires after lazy-loading takes place. var $sidebar = $('.ChatModule.module'); var comboString ='Tweets by @TardisWiki ' + ' !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); ';

if ($sidebar.size) { //check that the target has been loaded if (!$('.twitter-timeline').size) { //check to make sure it hasn't already been added. $sidebar.append(comboString); }			}			var $sidebar = $('.activity-heading'); var comboString2 = " Log on and play  ";

if ($sidebar.size) { //check that the target has been loaded if (!$('#mosbox').size) { //check to make sure it hasn't already been added. $sidebar.prepend(comboString2) }			}		}); //end of DOMNodeInserted block

} else if(skin == "monobook") { var $sidebar = $('#n-wikicitieshome'); var comboString = "  Check your score in  The Game of Rassilon.  Also, you can join the chat by clicking here. Wondering why things are changing around here? Keep up by reading the community news or by visiting the Panopticon. "; $sidebar.prepend(comboString); } });