Jump to content

Wikipedia:WikiProject User scripts/Scripts/Dashboard

From Wikipedia, the free encyclopedia
// <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>