MediaWiki:TwitterWidget.js

$(document).ready(function{   var idArr = [];    $(".twitter-widget").each(function{ twttr.widgets.createTweet(			$(this).attr("id"),			document.getElementById($(this).attr("id")).getElementsByClassName("twitter-widget")[0],			{   			align: 'left'			}		).then(function (el) {			console.log("Tweet displayed.");		}); });	// Join array elements and display in alert	alert(idArr.join(", ")); });