Jump to content

User:Zocky/moretools.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Zocky (talk | contribs) at 14:23, 1 November 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
function more_tools()
{
 var user_name=get_user_name();

 add_stuff
 (

    "column-one",
    el( "div","class","portlet",
      el("h5", tx("more tools")),
      el( "div","class","pBody",
        el("ul", "id", "more_tools_ul",
          el ("li",el("a","href","/wiki/User:" + user_name +  "/Sandbox",tx("my sandbox 1")),tx(" "),
                   el("a","href","/wiki/User:" + user_name +  "/Sandbox 2",tx("2")),tx(" "),
                   el("a","href","/wiki/User:" + user_name +  "/Sandbox 3",tx("3"))
             ),
          el ("li",el("a","href","w/index.php?title=Special:Prefixindex&namespace=2&from=" + user_name,tx("my userspace")))
        )
      )
    )
  )

 if (more_tools_show_block) 
 add_stuff(
   "more_tools_ul",
   el ("li",el("a","href","/wiki/Special:Blockip",tx("block ip"))),
   el ("li",el("a","href","/wiki/Special:Ipblocklist",tx("ip blocklist"))),
   el ("li",el("a","href","/wiki/Special:Log/Block",tx("block log")))
   )
}			

/*
if (window.addEventListener) window.addEventListener("load",morelinks,false);
else if (window.attachEvent) window.attachEvent("onload",morelinks);
*/
addLoadEvent(more_tools);