User:Seb26/redir.js

// Redirect page to user page function redirectPage { document.editform.wpTextbox1.value = "#REDIRECT User:" + wgTitle + ""; document.editform.wpSummary.value = "←Redirected page to User:" + wgTitle + ""; document.editform.wpMinoredit.checked = true; document.editform.wpSave.click; } function addRedirPageTab { if( wgCanonicalNamespace == "User_talk" && wgAction == "edit" ) { addPortletLink('p-cactions', 'javascript:redirectPage', 'redirectPage', 'ca-redirpage', "redirect!"); } } $(addRedirPageTab);