User:ITechieGamer/welcome.js

$(document).ready(function { // Add a new link after "Page information" in the toolbox  var $welcomeLink = $('Welcome a user').attr( { id: 't-welcome', href: '#', title: 'Welcome a user' } );  var $newUserLink = $('New users').attr( { id: 't-newusers', href: '/index.php?title=Special:ListAllUsers&group=&username=&editsOnly=0&creationSort=1', title: 'List of new users' } );  $('#p-tb-list').append($('').html($welcomeLink)).append($('').html($newUserLink));

$('#t-welcome').click( function {   // Notify the user for the username    var username = prompt('Who would you like to welcome?');    if(username == '' || username == null) return;

// Change welcome link to let the user know it's thinking $(this).html('Loading...');

// Welcome the user window.open('/index.php?action=edit&section=new&title=User_talk:'+username+'&preload=User:Dentedharp90041/welcome&preloadtitle=Welcome%21&preloadparams%5b%5d='+username+'&preloadparams%5b%5d=%7e', '_blank'); }); });