User:Cobold/monobook.js

@import "/index.php?title=Mediawiki:Monobook.js&action=raw&ctype=text/js"; @import "/index.php?title=User:Cobold/monobook.js&action=raw&ctype=text/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 = 'Cobold'; 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', , );     }   } );