User:Coastergeekperson04/monobook/test1.js

javascript:(function{var td=document.getElementById('bodyContent').getElementsByTagName('td');var editlink=td[0].getElementsByTagName('a')[1];var rvfrom=td[1].getElementsByTagName('a')[2].firstChild.nodeValue;var rvto=td[0].getElementsByTagName('a')[2].firstChild.nodeValue;var page=document.getElementsByTagName('h1')[0].firstChild.nodeValue;var edit=window.open(editlink);edit.onload=function{edit.document.editform.wpSummary.value=%22Reverted edit(s) by %22+rvfrom+%22 to the version by %22+rvto;edit.document.editform.submit;edit.close;};if (confirm('Press OK to warn this user about vandalism')) {var usertalk=window.open('http://en.wikipedia.org/w/index.php?title=User_talk:'+rvfrom+'&action=edit&section=new');usertalk.onload=function{usertalk.document.editform.wpSummary.value='Your edits to '+page+'';usertalk.document.editform.wpTextbox1.value='Thank you for experimenting with Wikipedia. Your test worked, and it has been reverted or removed. Please use the sandbox for any other tests you may want to do. Take a look at the welcome page to learn more about contributing to our encyclopedia.';usertalk.document.editform.submit;usertalk.close;};}history.back;});