User:EpochFail/nice.js

if (typeof QueryString !== 'undefined') { QueryString(location.search.substring(1, location.search.length)) if(QueryString.exists("undo")){ revisionId = QueryString.get("undo") REVERTED.revisionId = revisionId //Start AJAX call sequence params = new Object params.action = 'query' params.prop = 'revisions' params.revids = revisionId params.rvprop = 'user' params.format = 'json' WPAPIHandler.performGET(		params, 		checkForPreviousEdits, 		{}, 		function(message){			LOGGER.error(mw.config.get('wgUserName'), REVERTED.revisionId, "Searching for username using revisionId", message)			showErrorWhenReady(message)		}	) //Start ready catcher createSaveFormWhenReady } }