User:Timwi/vector.js

$(function {   if (typeof oldEditsectionLinks == 'undefined' || oldEditsectionLinks == false) {        var spans = document.getElementsByTagName ("span");        for (var i = 0; i < spans.length; i++) {            if (spans[i].className == "editsection") {                spans[i].style.fontSize = "x-small";                spans[i].style.fontWeight = "normal";                spans[i].style.cssFloat = "none";                spans[i].style.marginLeft = "0px";                spans[i].parentNode.appendChild (document.createTextNode (" "));                spans[i].parentNode.appendChild (spans[i]);            }        }    } });

if (mw.config.get('wgAction') == 'edit') { addOnloadHook (function minorEdit {      document.getElementById ('wpMinoredit').checked = true;    }); }