MediaWiki:Common.js/mosbox.js

// ============================================================ // 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 @jojowikia ' + ' !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); }			}		}	); } });