User:Ebe123/MtC/review.js

if (wgNamespaceNumber == 6 && wgAction == 'edit') { $(document).ready(function {		var text = document.getElementById ('wpTextbox1');		if (!text) return;		// Remove tag		text.value = text.value.replace (\{\{[Mm]arch 2012 MtC drive|, "\{\{Now Commons|")		// Set edit summary		var add = "This move has been reviewed";		var summary = document.getElementById ('wpSummary');		if (!summary) return;		var val = $.trim( summary.value || "" );		if (val.indexOf(add) != -1) return;		summary.value = (val.length == 0) ? add : val + " " + add;	}); }