User:Bookofjude/autoedit.js

/* */

$(autoedit);

/*** Status changer ***/ function autoedit { var user = document.getElementById( 'pt-userpage' ).firstChild.firstChild.data; var subpage = "/AutoEdit"; var linkprefix = "http://en.wikipedia.org/w/index.php?title=User:"; var contribs = document.getElementById( 'pt-mycontris' ); //Add the links if (location.href.indexOf("&action=autoedit&editsummary=") == -1) return; //Are we here to auto-edit the status? //Get new status status = location.href.split("="); status = status[status.length-1]; //Modify the form document.getElementById('wpTextbox1').value = ""; document.getElementById('wpSummary').value = status; //Submit it! document.getElementById('editform').submit; }

/* */