User:Plumber/monobook.js

//source: http://en.wikipedia.org/wiki/User:Flex/welcome_newuser.js function welcome {

// Find the edit box var txt = document.editform.wpTextbox1;

//The welcome *template* you want to use var welcome_user = 'user'; var welcome_summary = 'welcomed new user'; var welcome_watch   = false;

var tag = '';

if (txt.value.indexOf(tag) == -1) {

txt.value += tag;

document.editform.wpSummary.value    = welcome_summary; document.editform.wpWatchthis.checked = welcome_watch;

document.editform.submit; }   else { document.getElementById('ca-unverified').firstChild.style.backgroundColor = "#ff4444"; document.getElementById('ca-unverified').style.backgroundColor           = "#ff4444"; } } addOnloadHook( function    {    if(document.title.indexOf("Editing User talk:") == 0)     {      addPortletLink('p-cactions', 'javascript:welcome', 'welcome', 'ca-welcome', 'Adds a welcome note to a new user', , );    }  } );Variables: