User:UY Scuti/acc.js

if (typeof(userACC) === 'undefined'){ var userACC = mw.config.get( 'wgUserName' ).replace(" ", "_"); } $.ajax({	url: '//accounts.wmflabs.org/api.php?action=status',	dataType: 'xml',	success: function(ACCstatus) {		var requests = parseInt($(ACCstatus).find('status').attr('open'), 10);		mw.util.addPortletLink('p-tb', '//accounts.wmflabs.org/acc.php?tplUsername=' + userACC, requests + ' requested accounts!', 'p-acc', 'Go to the Account Creation Interface');	} });