User:DannyS712/AjaxRollback.js

// //Modified from User:BenjaminWillJS/AjaxRollback.js //Copied from [[User:Abelmoschus Esculentus/AjaxRollback.js] $(document).ready( function {	$('span.mw-rollback-link').click(function(e) {		e.preventDefault;		var $rblink = $(this);		var href = this.getElementsByTagName('a')[0].href;		this.innerHTML = '';		$.ajax({			url: href,			success: function {				$rblink.text(function (i, val) {return val + '[reverted]';});			},			error: function {				$rblink.text(function (i, val) {return val + '[rollback failed]';});			}		});	}); }); //