User:AndyZ/sandbox.js

/* if(document.location.href.substring(0,38)=="http://en.wikipedia.org/wiki/Category:"){ document.location.href="http://en.wikipedia.org/w/index.php?title=Category:"+document.location.href.substring(38,document.location.href.length)+"&action=delete" }

if(document.location.href.substring(0,51)=="http://en.wikipedia.org/w/index.php?title=Category:"){ document.getElementById('deleteconfirm').wpReason.value = "User:Imthehappywanderer mass creation of circular categories; " + document.getElementById('deleteconfirm').wpReason.value

setTimeout('document.location.href = "javascript:document.getElementById(\'deleteconfirm\').wpConfirmB.click"',100) } if((document.location.href.indexOf("http://en.wikipedia.org/w/index.php?title=Wikipedia:Peer_review/")!=-1) && (document.location.href.indexOf("section=1")!=-1) && (!(document.location.href.indexOf("Automated")!=-1))){ setTimeout('document.location.href = "javascript:review1"',1000) }

/* function dofix{ if((document.editform)&&(document.location.href.indexOf('AndyZ')!=-1)) { theTitle = document.location.href.substring((document.location.href.indexOf("PR") + 3),document.location.href.length-12) document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace(/ <noinclude/," <noinclude")

// Add a tag to the summary box - stolen from User:Bobblewik var txt = document.editform.wpSummary; var summary = "Footnote"; if (txt.value.indexOf(summary) == -1) { if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) { txt.value += " | "; }               txt.value += summary; }

} }

setTimeout("dofix",1000)