User:Examknow/rollbackall.js

$(document).ready(function {	if(mw.config.get("wgCanonicalSpecialPageName") == "Contributions")	{		mw.loader.using("mediawiki.util").done( function {			mw.util.addPortletLink('p-cactions', '#', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here"); $("#ca-rollbackeverything").click( function(event)			{				event.preventDefault;				mw.loader.load( 'mediawiki.api' ); //start loading, while the user is in the prompt					return rollbackEverythingWKMR(prompt("Enter an edit summary, or leave blank to use the default (or hit Cancel to cancel the rollback entirely)"));			}); });	} });