User:Spebi II/socktag.js

//

importScript('User:Voice of All/Addtabs/monobook.js');

function tagSock { var puppetName = prompt("Name of puppet?"); document.editform.wpTextbox1.value = "\{\{sockpuppetCheckuser|" + puppetName + "|" + puppetName "\}\}"; document.editform.wpSummary.value = "Tagging as blocked sockpuppet"; document.editform.wpMinoredit.checked = true; document.editform.wpSave.click; }

function addSockTab { if( wgCanonicalNamespace == "User" ) { mw.util.addPortletLink('p-cactions', 'javascript:tagSock', 'tagsock', 'ca-tagsock', "tag!"); } } addOnloadHook(addSockTab);

//