User:DatGuy/AjaxRollbackSummary.js

// //Copied from User:DannyS712/AjaxRollbackSummary.js which was in turn copied from Reverted edits by $2 (talk) to last version by $1");			if (summary === null || summary === "") {				$rblink.text(function (i, val) {return val + '[rollback cancelled]';});				return;			}			$.ajax({				url: href.replace("?", "?summary=" + encodeURIComponent(summary) + "&"),				success: function {					$rblink.text(function (i, val) {return val + '[reverted]';});					loadPageData;				},				error: function {					$rblink.text(function (i, val) {return val + '[rollback failed]';});					loadPageData;				}			});		});	}	mw.loader.using(['mediawiki.util', 'mediawiki.api', 'mediawiki.Title'], function {		SetAjaxRollback;	}); }); //