Opmerking: nadat u de wijzigingen hebt gepubliceerd is het wellicht nodig uw browsercache te legen.

  • Firefox / Safari: houd Shift ingedrukt terwijl u 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)
  • Internet Explorer / Edge: houd Ctrl ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5
  • Opera: druk op Ctrl-F5.
XEBOrder="A,B,D,C,D1,F,U,S,I1,I2,J1,E,G,Q,W,X,K,L,M,H,O,R,R4,V,J2,N,TL,Y1,Z,AI";
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// [[User:Dschwen/highlightredirects.js]] - please include this line 
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// This script color-codes lines according to who has the top contribution for a page.
//<pre>
$(function () {
  if((location.href.indexOf("Speciaal:Bijdragen")!=-1||
      location.href.indexOf("Speciaal%3ABijdragen")!=-1)
     &&location.href.indexOf("&Pjetter")==-1&&location.href.indexOf("?Pjetter")==-1)
  {
    var i,li,a;
    li=document.getElementById("bodyContent");
    //li.getElementsByTagName("ul")[0].tagName="ol";
    li=li.getElementsByTagName("li");
    i=-1;
    a=new Array();
    while(++i<li.length)
    {
      var s,t;
      t=li[i].innerHTML.match(/"\/wiki\/([^"]*)"/)[1];
      if(li[i].getElementsByTagName("strong").length>0)
        s="#CCCCFF";
      else
        s="#FFCCCC";
      if(a[t]!=undefined) s=(a[t]=="#CCCCFF"?"#CCFFFF":"#FFFFCC"); else a[t]=s;
      li[i].innerHTML="<SPAN STYLE='background-color:"+s+"'>"+li[i].innerHTML+"</SPAN>";
    }
  }
});

/**
 *Hieronder volgen de verschillende extra buttons, die gebruikt kunnen
 *worden voor het invoegen van standaard sjabloons<pre>
 */

function categorie() {
        insertTags("[[Categorie:","]]\n","");
        document.editform.wpSummary.value = "categorie";
        document.editform.wpMinoredit.checked = true;
}

function redirect() {
        document.editform.wpTextbox1.value = "#redirect [[]]";
        document.editform.wpSummary.value = "redirect";
        document.editform.wpMinoredit.checked = true;
}

function dp() {
        document.editform.wpTextbox1.value = "'''{{PAGENAME}}'''{{#if:|{{#if:|, '''{{{2}}}'''{{#if:|, '''{{{3}}}'''{{#if:|, '''{{{4}}}'''{{#if:|, '''{{{5}}}''' of '''{{{6}}}'''|&nbsp;of '''{{{5}}}'''}}|&nbsp;of '''{{{4}}}'''}}|&nbsp;of '''{{{3}}}'''}}|&nbsp;of '''{{{2}}}'''}}}} kan verwijzen naar:\n\n*\n*\n\n{{dp}}";
        document.editform.wpSummary.value = "dp";
        document.editform.wpMinoredit.checked = false;
}


function add_link(url, name)
{
  var na = document.createElement('a');
  na.setAttribute('href', url);
  na.appendChild(document.createTextNode(name));

  var li = document.createElement('li');
  li.appendChild(na);

  var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
  tabs.appendChild(li);
}

/**
 *Het zetten van de bovenstaande buttons op het bewerkingsscherm
 */

function addButtons() {

str = "<input type=button value=categorie onclick=\"categorie()\" class=subbutt> <input type=button value=redirect onclick=\"redirect()\" class=subbutt> <input type=button value=dp onclick=\"dp()\" class=subbutt>" 

document.getElementById("editpage-copywarn").innerHTML="<form action=\"\">"+str+"</form><br/>"+document.getElementById("editpage-copywarn").innerHTML;        
        return false; 
}

if(location.href.match(/action=(edit)|(submit)/)) {
  if (window.addEventListener) {
    window.addEventListener("load", addButtons, false);
  } else if (window.attachEvent) {
    window.attachEvent("onload", addButtons);
  }
}

//Een standaardfuncties voor het toevoegen van links

//Deze functie zorgt ervoor dat er een unwatch functie op je volglijst komt, zodat je direct een
//artikel van de volglijst kan verwijderen, als je je volglijst bekijkt

$(function () {
    var query_prefix = "title=Speciaal:Watchlist&action=submit&remove=1&id[]=";
    //var query_prefix = "action=unwatch&title=";

    if (window.location.href.indexOf("Speciaal:Watchlist") == -1) return;
    var links = document.getElementById('content').getElementsByTagName('a');
    for (var i = 0; i < links.length; i++) {
        if (links[i].href.substring(links[i].href.length-15) != '&action=history')
            continue;
        var unwatch = document.createElement('a');
        unwatch.href = "/w/index.php?" + query_prefix + encodeURIComponent(links[i].title);
        unwatch.title = "unwatch "+links[i].title;
        unwatch.appendChild(document.createTextNode("niet volgen"));
        links[i].parentNode.insertBefore(unwatch, links[i].nextSibling);
        // kluge to handle case where "diff" is unlinked:
        var delim = links[i].previousSibling;
        delim = (delim.nodeType == 3 ? delim.nodeValue : "");
        links[i].parentNode.insertBefore(document.createTextNode(delim.replace(/^.*diff/, "")), unwatch);
    }
});

if (window.addEventListener) window.addEventListener("load",myLoadFuncs,false);
else if (window.attachEvent) window.attachEvent("onload",myLoadFuncs);
else
{
    window.previousLoadFunction = window.onload;
    window.onload = function()
    {
        window.previousLoadFunction();
        myLoadFuncs();
    }
}


/** http://commons.wikimedia.org/w/index.php?title=User:Alphax/monobook.js
 * Initialiseert het laden van verschillende functies
 */

if (window.addEventListener) window.addEventListener("load",myLoadFuncs,false);
else if (window.attachEvent) window.attachEvent("onload",myLoadFuncs);
else
{
    window.oldonload = window.onload;
    window.onload = function()
    {
        window.oldonload();
        myLoadFuncs();
    }
}

function changeLinks()
{
    if(!document.getElementById) return;
    // "Mijn" in de persoonlijke box weghalen. in de toolbox "printvriendelijke versie" korter
    document.getElementById('t-print').firstChild.innerHTML = 'Printversie';
    document.getElementById('pt-mytalk').firstChild.innerHTML = 'Overleg';
    document.getElementById('pt-preferences').firstChild.innerHTML = 'Voorkeuren';
    document.getElementById('pt-mycontris').firstChild.innerHTML = 'Bijdragen';
}

function myLoadFuncs()
{
    addPurge();
    changeLinks();
    addToolBoxLinks();
    if (document.title.indexOf('Afbeelding:') == 0)
    {
        checkUsage();
    }
}

/**
 * Voegt een "purge" tabje toe
 */

function addPurge()
{
    ta['ca-purge'] = ['g', 'Purge the internal cache for this page'];
    if(!document.getElementById) return;
    var x = document.getElementById('ca-history');
    var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
    if(!x) { return; }
    if(x.children) { x = x.children[0]; }
    else { x = x.childNodes[0]; }
    addlilink(tabs, x.href.replace(/=history/, "=purge"), 'purge', 'ca-purge');
}

/**
 * voegt tabjes toe
 */

function addlilink(tabs, url, name, id)
{
    var na = document.createElement('a');
    na.href = url;
    na.appendChild(document.createTextNode(name));
    var li = document.createElement('li');
    li.id = id;
    li.appendChild(na);
    tabs.appendChild(li);
    return li;
}

/**
 * Voegt een "check usage" tab bij afbeeldingen toe (een externe link)
 */

function checkUsage()
{
    var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
    addlilink(tabs, 'http://www.juelich.de/avatar/check-usage/check-usage.php?filename=' + get_tidy_title() + '&template', 'check usage', '');
}


/**
 * Links onder bij hulpmiddelen die ik veel gebruik
 */

function addToolBoxLinks()
{
    var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
    addlilink(tb, '/wiki/Speciaal:Log', 'Logboek', '');
    addlilink(tb, '/wiki/Gebruiker:Pjetter/monobook.js', 'monobook.js', '');
    addlilink(tb, '/wiki/Gebruiker:Pjetter/monobook.css', 'monobook.css', '');
    addlilink(tb, '/wiki/Gebruiker:Pjetter/klad', 'klad', '');
    addlilink(tb, '/wiki/Gebruiker:Pjetter/Links', 'Links', '');
    addlilink(tb, 'http://nl.wikibooks.org/wiki/Speciaal:Recentchanges', 'Wikibooks', '');
    addlilink(tb, 'http://nl.wikiquote.org/wiki/Speciaal:Recentchanges', 'Wikiquote', '');
    addlilink(tb, 'http://nl.wikimedia.org/wiki/Speciaal:Recentchanges', 'Wikimedia', '');
}
//</pre>