User:Cy/common.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
(Created page with "function rollbackEverythingWKMR() { $("a[href*='action=rollback']").each(function(ind, el) { window.open(el.href, "_blank"); }); } $(document).ready(function() { if(mw...")
 
(No difference)

Latest revision as of 04:55, 2 June 2018

function rollbackEverythingWKMR() {
	$("a[href*='action=rollback']").each(function(ind, el)
	{
		window.open(el.href, "_blank");
	});
}
$(document).ready(function()
	{
		if(mw.config.get("wgCanonicalSpecialPageName") === "Contributions" && $("span.mw-rollback-link").length > 0)
		{
			addPortletLink('p-cactions', 'javascript:rollbackEverythingWKMR()', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here");
  		}
	});