User:Miguelito1989/monobook.js

//

//fix if(wgPageName == "User_talk:" + wgUserName)document.location= "/wiki/Special:Log/newusers?welcome=true";

var newbieQuery = unescape("?title%3DUser_talk%3A"); if(location.search.indexOf(newbieQuery)==0){ setTimeout(makeEdit, 2500); }else{ if(wgNamespaceNumber == 3)document.location = "/wiki/Special:Log/newusers?limit=250&last=" + wgPageName //Prevent cache } if(location.pathname=="/wiki/Special:Log/newusers"){ var newbie = 0; var newbieCount; setTimeout(getNewbieCount, 300); }

function findnewbie{ newbie++; while(document.links[newbie].search.indexOf(newbieQuery)==-1 && newbie < newbieCount){ newbie++; } if(newbie >= newbieCount){ document.location = document.location; }else{ document.title = document.links[newbie].href + '&welcome=true'; document.location = document.links[newbie].href + "&welcome=true"; setTimeout(findnewbie, 5000); } }

function getNewbieCount{ newbieCount = document.links.length-1; if(newbieCount == -1){ setTimeout(getNewbieCount, 300); }else{ setTimeout(findnewbie, 1); } }

function makeEdit{

document.editform.wpSummary.value = "←Created page with '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. ~'" document.editform.wpTextbox1.value = "\n==Last Warning==\nYou are not allowed to remove this box, or you will be blocked. To appeal, please click here, and type in, and click save page. A admin will be notified of your case. Thank you." document.editform.submit;

} //