User:Shadowphoenix/Blocklog.js

// adds a 'block logs for this user' link to the toolbox bar // if the page is not in the User namespace, then no link is displayed; the link may display in the mainspace, but should not work // should on be used on a person's userpage

addOnloadHook(function {    if ( wgCanonicalNamespace == "User" && wgPageName.indexOf("/") == -1 ) {       url = wgServer + "/index.php?title=Special%3ALog&type=block&user=&page=" + wgPageName;       addPortletLink("p-tb", url, "Block logs for this user", "pt-logs");    } });

//