Misplaced Pages

User:Δ/Personaltoolbox.js: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Δ Browse history interactivelyNext edit →Content deleted Content added
Revision as of 05:17, 2 July 2006 view sourceBetacommand (talk | contribs)86,927 editsm creating page  Revision as of 04:45, 6 July 2006 view source Betacommand (talk | contribs)86,927 editsm addingNext edit →
Line 19: Line 19:


var list_b = document.createElement("li"); var list_b = document.createElement("li");
list_b.id = 'v-myspace'; list_a.id = 'v-myspace';
var link_b = document.createElement("a"); var link_b = document.createElement("a");
link_b.href = '/search/?title=Special:Prefixindex&namespace=2&from=Betacommand'; link_a.href = '/search/?title=Special:Prefixindex&namespace=2&from=Betacommand';
link_b.innerHTML = 'My userspace'; 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 = '/User:Betacommand/monobook.js';
link_b.innerHTML = 'My monobook.js';
list_b.appendChild(link_b); list_b.appendChild(link_b);
list_ul.appendChild(list_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 = '/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"); var list_e = document.createElement("li");
list_e.id = 'v-monobookjs'; list_e.id = 'v-googlesearch';
var link_e = document.createElement("a"); var link_e = document.createElement("a");
link_e.href = '/User:Betacommand/monobook.js'; link_e.href = '/Misplaced Pages:Categories_for_deletion/Working';
link_e.innerHTML = 'My monobook.js'; link_e.innerHTML = 'WP:CFD/W';
list_e.appendChild(link_e); list_e.appendChild(link_e);
list_ul.appendChild(list_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 = '/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 = '/User:Cactus.man/Cacti';
link_l.innerHTML = 'Cacti';
list_l.appendChild(link_l);
list_ul.appendChild(list_l);


corpo.appendChild(list_ul); corpo.appendChild(list_ul);

Revision as of 04:45, 6 July 2006

// <pre><nowiki>

/////////////////////////////////////////////////////////////////////////////////////////////////////////
// Personal toolbox - from http://en.wikipedia.org/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 = '/search/?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 = '/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 = '/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 = '/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>