User:The Evil Spartan/Personaltoolbox.js

Source: Wikipedia, the free encyclopedia.
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.
// <pre><nowiki>

/////////////////////////////////////////////////////////////////////////////////////////////////////////
// Personal toolbox - from http://en.wikipedia.org/wiki/User:Betacommand/Personaltoolbox.js
//                    from http://en.wikipedia.org/wiki/User:Brian0918/monobook.js
/////////////////////////////////////////////////////////////////////////////////////////////////////////

function mylinks() {
 var boxclone = document.createElement("div");
 boxclone.id = 'p-navclone';
 boxclone.setAttribute("class","portlet");

 var titolo = document.createElement("h5");
 titolo.innerHTML = "my links";
 boxclone.appendChild(titolo);

 var corpo = document.createElement("div");
 corpo.setAttribute("class","pBody");
 var list_ul = document.createElement("ul");

 var list_b = document.createElement("li");
 list_b.id = 'v-myspace';
 var link_b = document.createElement("a");
 link_b.href = '/w/index.php?title=Special:Prefixindex&namespace=2&from=The Evil Spartan';
 link_b.innerHTML = 'My userspace';
 list_b.appendChild(link_b);
 list_ul.appendChild(list_b);

 var list_e = document.createElement("li");
 list_e.id = 'v-monobookjs';
 var link_e = document.createElement("a");
 link_e.href = '/wiki/User:The Evil Spartan/monobook.js';
 link_e.innerHTML = 'My monobook.js';
 list_e.appendChild(link_e);
 list_ul.appendChild(list_e);

 var list_j = document.createElement("li");
 list_j.id = 'v-tablehelp';
 var link_j = document.createElement("a");
 link_j.href = '/wiki/User:Cactus.man/Table_Help';
 link_j.innerHTML = 'Table help';
 list_j.appendChild(link_j);
 list_ul.appendChild(list_j);

 var list_l = document.createElement("li");
 list_l.id = 'v-special';
 var link_l = document.createElement("a");
 link_l.href = '/wiki/http://en.wikipedia.org/wiki/Special:ExpandTemplates';
 link_l.innerHTML = 'Expand template';
 list_l.appendChild(link_l);
 list_ul.appendChild(list_l);

 corpo.appendChild(list_ul);
 boxclone.appendChild(corpo);
 document.getElementById("column-one").appendChild(boxclone);
}

if (window.addEventListener) window.addEventListener("load",mylinks,false);
else if (window.attachEvent) window.attachEvent("onload",mylinks);

// </nowiki></pre>