Jump to content

User:Δ/Personaltoolbox.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Betacommand (talk | contribs) at 04:45, 6 July 2006 (adding). 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.
// <pre><nowiki>

/////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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_b = document.createElement("li");
 list_a.id = 'v-myspace';
 var link_b = document.createElement("a");
 link_a.href = '/w/index.php?title=Special:Prefixindex&namespace=2&from=Betacommand';
 link_a.innerHTML = 'My userspace';
 list_a.appendChild(link_a);
 list_ul.appendChild(list_a);

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

 var list_c = document.createElement("li");
 list_c.id = 'v-googlesearch';
 var link_c = document.createElement("a");
 link_c.href = 'http://www.google.co.uk/advanced_search?q=site:en.wikipedia.org';
 link_c.innerHTML = 'Search with Google';
 list_c.appendChild(link_c);
 list_ul.appendChild(list_c);

 var list_d = document.createElement("li");
 list_d.id = 'v-googlesearch';
 var link_d = document.createElement("a");
 link_d.href = '/wiki/Wikipedia:Bots/Requests_for_approvals';
 link_d.innerHTML = 'WP:BOT request';
 list_d.appendChild(link_d);
 list_ul.appendChild(list_d);

 var list_e = document.createElement("li");
 list_e.id = 'v-googlesearch';
 var link_e = document.createElement("a");
 link_e.href = '/wiki/Wikipedia:Categories_for_deletion/Working';
 link_e.innerHTML = 'WP:CFD/W';
 list_e.appendChild(link_e);
 list_ul.appendChild(list_e);

 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>