User:Neier/monobook.js/jname.js

function wpTextboxJName { var txt = document.title txt = txt.replace(/Editing /gi, ''); // txt = txt.replace(/ - Wikipedia, the free encyclopedia/gi, ''); txt = txt.replace(/ .*/gi, '');

document.editform.wpTextbox1.value = '{' + '{' + 'Japanese name' + '|' + txt + '}' + '}' + '\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Tagged as Japanese name'; document.editform.wpMinoredit.checked = true; document.editform.wpWatchthis.checked = false; }