User:Cactus.man/Scripts/PersonalToolbox.js

//

///////////////////////////////////////////////////////////////////////////////////////////////////////// // Personal toolbox - 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_a = document.createElement("li"); list_a.id = 'v-mylogs'; var link_a = document.createElement("a"); link_a.href = '/w/index.php?title=Special%3ALog&type=&user=Cactus.man&page='; link_a.innerHTML = 'My logs'; list_a.appendChild(link_a); list_ul.appendChild(list_a);

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%3APrefixIndex&prefix=Cactus.man&namespace=2'; link_b.innerHTML = 'My userspace'; list_b.appendChild(link_b); list_ul.appendChild(list_b);

var list_c = document.createElement("li"); list_c.id = 'v-contribs'; var link_c = document.createElement("a"); link_c.href = '/wiki/User:Cactus.man/Contributions'; link_c.innerHTML = 'My contributions'; list_c.appendChild(link_c); list_ul.appendChild(list_c);

var list_d = document.createElement("li"); list_d.id = 'v-imagecontribs'; var link_d = document.createElement("a"); link_d.href = '/wiki/User:Cactus.man/Contributions/Images'; link_d.innerHTML = 'My images'; list_d.appendChild(link_d); list_ul.appendChild(list_d);

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

var list_f = document.createElement("li"); list_f.id = 'v-swnb'; var link_f = document.createElement("a"); link_f.href = '/wiki/Wikipedia:Scottish_Wikipedians%27_notice_board'; link_f.innerHTML = 'SWNB'; list_f.appendChild(link_f); list_ul.appendChild(list_f);

var list_g = document.createElement("li"); list_g.id = 'v-newimages'; var link_g = document.createElement("a"); link_g.href = '/wiki/Wikipedia:Scottish_Wikipedians%27_notice_board/New_images'; link_g.innerHTML = 'SWNB new images'; list_g.appendChild(link_g); list_ul.appendChild(list_g);

var list_h = document.createElement("li"); list_h.id = 'v-newarticles'; var link_h = document.createElement("a"); link_h.href = '/wiki/Wikipedia:Scottish_Wikipedians%27_notice_board/New_articles'; link_h.innerHTML = 'SWNB new articles'; list_h.appendChild(link_h); list_ul.appendChild(list_h);

var list_i = document.createElement("li"); list_i.id = 'v-scotlists'; var link_i = document.createElement("a"); link_i.href = '/wiki/Category:Scotland-related_lists'; link_i.innerHTML = 'Scotland related'; list_i.appendChild(link_i); list_ul.appendChild(list_i);

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_k = document.createElement("li"); list_k.id = 'v-googlesearch'; var link_k = document.createElement("a"); link_k.href = 'http://www.google.co.uk/advanced_search?q=site:en.wikipedia.org'; link_k.innerHTML = 'Search with Google'; list_k.appendChild(link_k); list_ul.appendChild(list_k);

var list_l = document.createElement("li"); list_l.id = 'v-cacti'; var link_l = document.createElement("a"); link_l.href = '/wiki/User:Cactus.man/Cacti'; link_l.innerHTML = 'Cacti'; list_l.appendChild(link_l); list_ul.appendChild(list_l);

var list_m = document.createElement("li"); list_m.id = 'v-scofgdyk'; var link_m = document.createElement("a"); link_m.href = '/wiki/User:Ben_MacDui/Sandbox2'; link_m.innerHTML = 'SCO Featured, Good & DYK'; list_m.appendChild(link_m); list_ul.appendChild(list_m);

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);

//