User:Blueenzyme/common.js

/* mw.loader.using('mediawiki.api', function {	var api = new mw.Api;	var result = null;	// /w/api.php?action=query&list=users&format=json&ususers=Blueenzyme	api.get({ action: "query", list: "users", format: "json", usprop: "editcount", ususers: "Blueenzyme" })	.done(function(data){ console.log(data); result = data; });	console.log(mw);	var tabLink = mw.util.addPortletLink( 'p-views', '#',	'Show Edit Count');	$(tabLink).click(function { alert(result.query.users[0].editcount); }); })