Gebruiker:Apoo/EditCount.js
Naar navigatie springen
Naar zoeken springen
Let op! Nadat je de veranderingen hebt opgeslagen, moet je de cache van je browser nog legen om ze daadwerkelijk te zien.
Mozilla (incl. Firefox) | ctrl-shift-r |
IE | ctrl-f5 |
Opera | f5 |
Safari | cmd-r |
Konqueror | f5 |
var addid = 0;
function addInput(id) {
var addList = document.getElementById('addlist');
var docstyle = addList.style.display;
if (docstyle == 'none') addList.style.display = '';
addid++;
var text = document.createElement('div');
text.id = 'additem_' + addid;
text.innerHTML = "<input type='text' id='text' /> <input type='button' id='btn' value='Submit' onClick='javascript: window.open('https://wikikids.nl/api.php?action=query&format=xml&list=allusers&auprop=editcount&aulimit=1&auwitheditsonly=1&aufrom=' + document.getElementById('text').value);' />";
addList.appendChild(text);
}
if (mw.config.get('wgCanonicalNamespace') === 'User' && mw.config.get('wgTitle') === 'Apoo/EditCount') {
addInput(1);
}