User:MBisanz/friendlywelcome.js

// // If you are editing a page, click the welcome button on your tab bar to add " ~" to the top, set "Welcome to Wikipedia!" as the edit summary, and submit. function doQwelcome { document.editform.wpTextbox1.value = '{' + '{' + 'subst:user:MBisanz/Welcome + '}' + '}' + ' ~'\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Welcome to Wikipedia!'; document.editform.wpMinoredit.checked = false; document.editform.submit; } $(function { if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "Talk" || wgCanonicalNamespace == "Main" || wgCanonicalNamespace == "Wikipedia" || wgCanonicalNamespace == "Wikipedia_talk" || wgCanonicalNamespace == "Image" || wgCanonicalNamespace == "Image_talk" || wgCanonicalNamespace == "MediaWiki" || wgCanonicalNamespace == "MediaWiki_talk" || wgCanonicalNamespace == "Template" || wgCanonicalNamespace == "Template_talk" || wgCanonicalNamespace == "Help" || wgCanonicalNamespace == "Help_talk" || wgCanonicalNamespace == "Category" || wgCanonicalNamespace == "Category_talk" || wgCanonicalNamespace == "Portal" || wgCanonicalNamespace == "Portal_talk") {     return;  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQwelcome", "welcome", "ca-welcome", "Welcome user", "");  } }); // by jj137 //