User:Juggler17/myskin.js
From Wikipedia, the free encyclopedia
If a message on your talk page led you here, please be wary of who left it. Code that you insert on this page could contain malicious content capable of compromising your account. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. If this is a .js page, the code will be executed when previewing the page.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
// <nowiki> // La parte di script per l'estensione del box strumenti è opera di [[Utente:Timendum]] // (un sentito ringraziamento) :-) function morelinks() { var tabs = document.getElementById('p-cactions').cloneNode(true); tabs.id = 'mytabs'; var listitems = tabs.getElementsByTagName('LI'); for (i=0;i<listitems.length;i++) { if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id; } document.getElementById('column-content').appendChild(tabs); var boxclone = document.createElement("div"); boxclone.id = 'p-navclone'; boxclone.setAttribute("class","portlet"); var titolo = document.createElement("h5"); titolo.innerHTML = "strumenti extra"; 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-sandbox'; var link_a = document.createElement("a"); link_a.href = '/wiki/Utente:Kormoran/Sandbox'; link_a.innerHTML = 'Sandbox personale'; list_a.appendChild(link_a); list_ul.appendChild(list_a); var list_b = document.createElement("li"); list_b.id = 'v-tabelle'; var link_b = document.createElement("a"); link_b.href = '/wiki/Wikipedia:Come_usare_le_tabelle'; link_b.innerHTML = 'Markup tabelle'; list_b.appendChild(link_b); list_ul.appendChild(list_b); var list_c = document.createElement("li"); list_c.id = 'v-makeup'; var link_c = document.createElement("a"); link_c.href = '/wiki/Aiuto:Markup_immagini'; link_c.innerHTML = 'Markup immagini'; list_c.appendChild(link_c); list_ul.appendChild(list_c); var list_d = document.createElement("li"); list_d.id = 'v-tex'; var link_d = document.createElement("a"); link_d.href = '/wiki/Wikipedia:Formule_matematiche_TeX'; link_d.innerHTML = 'Markup TeX'; list_d.appendChild(link_d); list_ul.appendChild(list_d); corpo.appendChild(list_ul); boxclone.appendChild(corpo); document.getElementById("column-one").appendChild(boxclone); } /* if (window.addEventListener) window.addEventListener("load",morelinks,false); else if (window.attachEvent) window.attachEvent("onload",morelinks); */ addOnloadHook(morelinks); // </nowiki>