User:Demotivator/Over500Edits.js

window.UserTagsJS = $.extend(true, window.UserTagsJS, { extensions: {} }); UserTagsJS.extensions.Over500Edits = { start: function(config, username) { var promise = $.ajax({			url: mw.util.wikiScript('api'),			data: {				action: 'parse',				format: 'json',				text: ,				prop: 'text',				disablepp: 1			},			dataType: 'json'		}).then(function(json) {			var num = $(json.parse.text['*']).text.replace(/[^\d]/g, );			if (num && +num > 500) {				return ['bigmafiaboss'];			}			return null;		}); return { tags: { bigmafiaboss: { u: 'Big Mafia Boss' } },			promise: promise };	} };