User:Markdr/monobook.js

// User:Lupin/popups.js

document.write(' ');

//Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

// STATUS CHANGER addOnloadHook(function { var subpage = "/Status";  var scheme = "/StatusTemplate";  var subpagelink = wgServer + "/w/index.php?title=User:" + encodeURIComponent(wgUserName + subpage);  var logout = document.getElementById( 'pt-logout' );  //Add the links  mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=in", "Online", "pt-status-in", "I'm in!", "", logout);  mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=busy", "Busy", "pt-status-busy", "I'm busy!", "", logout);  mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=out", "Offline", "pt-status-out", "I'm out!", "", logout);  if (location.href.indexOf("&action=edit&newstatus=") == -1) return; //Are we here to auto-edit the status?  //Get new status  var statusRegExp = /&action=edit&newstatus=(.*)/;  var status = statusRegExp.exec(location.href)[1];  //Modify the form document.getElementById('wpTextbox1').value = ""; document.getElementById('wpSummary').value = "Changing user status to "+status; document.getElementById('wpMinoredit').checked = 'checked'; //Submit it! document.getElementById('editform').submit; });

//