User:Mike Dillon/Scripts/modifyInteriotEditCounter.js

// Requires: User:Mike Dillon/Scripts/easydom.js

/* */

if (wgPageName == 'User:Interiot/Tool2/code.js') { alert(onloadFuncts[onloadFuncts.length - 1]); addOnloadHook(function {        // Populate username field        var userNameField = document.getElementById("username");        if (!userNameField) return;

userNameField.value = wgUserName;

// Add reset button var node = userNameField; while (node = node.parentNode) { if (node.tagName && node.tagName.toLowerCase == 'table') { node.getElementsByTagName("tr")[1] .getElementsByTagName("td")[1] .appendChild(easydom.input({ "type": "reset", "value": "Clear" })); return; }       }    }); }

/* */