Gebruiker:IIVQ/monobook.js
Uiterlijk
Opmerking: na het publiceren is het wellicht nodig uw browsercache te legen om de veranderingen te zien.
- Firefox / Safari: houd Shift ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
- Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
- Edge: houd Ctrl ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5.
/* <pre> */
//[[User:Lupin/popups.js]]
document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[Gebruiker:Dschwen/wikiminiatlas2.js]] - please include this line in your monobook.js
document.write('<script type="text/javascript" src="'
+ 'http://nl.wikipedia.org/w/index.php?title=Gebruiker:Dschwen/wikiminiatlas2.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function addToList(elem,links)
{
if(elem.nodeName.toUpperCase() == "UL")
{
for(i=0;i<links.length;i++)
{
link = links[i];
li = document.createElement('LI');
ahref = document.createElement('A');
ahref.href = link.href;
ahref.title = link.title;
if(link.accessKey) {
ahref.accessKey = link.accessKey;
ahref.title += " [alt-" + link.accessKey + "]";
}
ahref.appendChild(link.text);
li.appendChild(ahref);
if(document.location.href == link.href)
li.className = "active";
elem.appendChild(li);
}
} else {
if(elem.children) {
if(elem.children.length>0)
for(i=0;i<elem.children.length;i++) {
addToList(elem.children[i],links);
}
} else {
if(elem.childNodes.length>0)
for(i=0;i<elem.childNodes.length;i++) {
addToList(elem.childNodes.item(i),links);
}
}
}
}
function createLink(link, omsch, titel, acc)
{
this.href = link;
this.title = titel;
this.accessKey = acc;
this.text = document.createTextNode(omsch);
}
function addNavLinks() {
var nav = document.getElementById('p-navigation');
var links = new Array(2);
links[0] = new createLink("http://nl.wikipedia.org/wiki/Wikipedia:De_kroeg", "De Kroeg", "De Kroeg", "k");
links[1] = new createLink("http://nl.wikipedia.org/wiki/Wikipedia:SHEIC", "SHEIC", "SHEIC", "S");
links[2] = new createLink("http://nl.wikipedia.org/wiki/Gebruiker:IIVQ/Bijdragen", "Bijdragen", "Bijdragen", "");
links[3] = new createLink("http://nl.wikipedia.org/wiki/Gebruiker:IIVQ/Laboratorium", "Laboratorium", "Laboratorium", "");
links[4] = new createLink("http://nl.wikipedia.org/wiki/Gebruiker:IIVQ/Basiskaart", "Basiskaart", "Basiskaart", "");
links[5] = new createLink("http://nl.wikipedia.org/wiki/Special:prefixindex/"+wgPageName, "Prefix", "Prefix", "");
links[6] = new createLink("http://en.wikipedia.org/wiki/"+wgPageName, "en:", "en:", "");
if(nav) addToList(nav,links);
}
if (window.addEventListener) { window.addEventListener("load",addNavLinks,false); }
else if (window.attachEvent) { window.attachEvent("onload",addNavLinks); }
/* </pre> */