User:Δ/AutoEdit.js

//BEGIN AUTOREPLACE var autoreplace_enabled = false; // var autoreplace_mainsummary = "Script: Replacing "; var autoreplace_extrasummary = "testing code"; var autoreplace_find = /test/g; var autoreplace_rpl = "testIng"; var autoreplace_list = "User:GeorgeMoney/sandbox|User:GeorgeMoney/Blank"; //Use underscores for spaces and seperate each page with a pipe character "|" // var autoreplace_autoclick = 'wpSave';

function myautoreplace { if(window.location.href.indexOf('autoedit=no') != -1) { return; } if(window.location.href.indexOf('GeorgeMoney') != -1 && window.location.href.indexOf('auto') != -1) { return; } if(window.location.href.indexOf('action=edit') != -1) { document.getElementById('wpSummary').value = autoreplace_mainsummary+autoreplace_extrasummary; var contents = document.getElementById('wpTextbox1').value; var newcontents = contents.replace(autoreplace_find, autoreplace_rpl); document.getElementById('wpTextbox1').value = newcontents; document.getElementById('wpWatchthis').checked = ""; document.getElementById(autoreplace_autoclick).click; } else { window.location.href=('http://wikipedia.georgemoney.com/autoedit.php?list='+autoreplace_list+'&page='+wgPageName); }	} document.write(' '); if(autoreplace_enabled && autoreplace_auto_php) { addOnloadHook(function{ myautoreplace; }); }

// END AUTOREPLACE CODE