User:Tony Fox/vector.js

function addDash { loLogoutNode = document.getElementById("pt-logout"); loDashNode = mw.util.addPortletLink( "p-personal"      , mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=User:" + mw.config.get('wgUserName') + "/Dashboard"        , "my dashboard"        , "pt-admindash"        , "Link to dashboard"        , "d"        , loLogoutNode ); } $(addDash);