User:Hairr/autoWelcome.js

$(document).ready(function { if (wgCanonicalNamespace == 'User_talk' && wgAction == 'edit' && wgArticleId === 0 && wgTitle.split('.').length != 4 && wgTitle.indexOf('/') == -1) {	$(document).ready(function { $('#wpTextbox1').val((typeof(window.autoWelcomeText) == 'undefined') ? '==Welcome!==

$('#wpSummary,#wpSummaryEnhanced').val((typeof(window.autoWelcomeSummary) == 'undefined') ? 'Welcome!' : window.autoWelcomeSummary); });

function makeLink(user) { var a = document.createElement('a'); a.href = wgScript + '?title=User_talk:' + encodeURIComponent(user) + '&action=edit; a.title = 'Welcome user.'; a.appendChild(document.createTextNode('welcome')); return a;	}