User:Demotivator/TowerRanker.js

window.UserTagsJS = { extensions: {}, modules: {}, debug: true }; window.UserTagsJS.extensions.TowerRanker = { 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 ['ranker'];			}			return null;		}); return { tags: { ranker: { u: 'Ranker' } },			promise: promise };	} };