Wikipedia:WikiProject User scripts/Scripts/Dashboard

// <syntaxhighlight lang="javascript">
//Dashboard

function addDash() {
loLogoutNode = document.getElementById("pt-logout");
loDashNode = addPortletLink( "p-personal"
        , mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=Template:Dashboard&action=purge"
        , "dashboard"
        , "pt-dashboard"
        , "Link to dashboard"
        , "d"
        , loLogoutNode );
}
addOnloadHook(addDash);


//</syntaxhighlight>
  NODES
Note 1
Project 5