MediaWiki:Common.js/Edit section.js

/** Shifting the edit section links function setModifySectionStyle { try { if ( typeof oldEditsectionLinks != 'undefined' && oldEditsectionLinks ) return; var spans = document.getElementsByTagName("span"); for (var s = 0, len = spans.length; s < len; ++s) { var span = spans[s]; if (span.className == "editsection") { span.style.cssFloat = span.style.styleFloat = "none"; span.parentNode.appendChild(document.createTextNode(" ")); span.parentNode.appendChild(span); }		}	} catch (e) { /* something went wrong */ } } addOnloadHook(setModifySectionStyle);
 * Copyright 2006, Marc Mongenet. Licence GPL et GFDL.
 * The function looks for, and moves them
 * to the end of their parent.
 * var oldEditsectionLinks=true disables the function.