User:A930913/vada/plugin/lstats.js

if(typeof window!="undefined"){ //inside Vada DOM (function{		var lstats={};		lstats.about={			name:"Live Stats",			description:"View a graphic of live stats on Wikipedia",			namespace:"lstats",			userscript:"User:A930913/vada/plugin/lstats.js",		}		lstats.load=function(params){			$("#diffcontainer").html(' ');		}		window.vada.loadPlugin(lstats);	}); } else { //inside Vada process vada.plugins.lstats={ start:function{ vada.events.trigger("plugins.stop",{}); vada.events.addListener("plugins.stop",vada.plugins.lstats.stop); vada.dom.call("plugins.lstats.load",{}); },		stop:function{ vada.events.removeListener("plugins.stop",vada.plugins.lstats.stop); },	}	vada.plugins.lstats.button=new vada.dom.menu.Button("lstats_start"); vada.plugins.lstats.button.text="Live Statistics"; vada.plugins.lstats.button.click=vada.plugins.lstats.start; vada.dom.menu.buttons.vada.children.push(vada.plugins.lstats.button); vada.dom.menu.redraw; }