User:Demotivator/Over100Edits.js

window.UserTagsJS = $.extend(true, window.UserTagsJS, { extensions: {} }); UserTagsJS.extensions.Over100Edits = { 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 > 100) {				return ['hunter'];			}			return null;		}); return { tags: { hunter: { u: 'Hunter' } },			promise: promise };	} };