MediaWiki talk:Monobook.js
What about adding the following?
- I'd rather not have any extra Javascript because it's more to break, some browsers can't handle it, and it makes things look different from Wikipedia. Emperor 02:39, 8 August 2009 (UTC)
- OK. Wikademia
//
/* tooltips and access keys */ /* Any JavaScript here will be loaded for users using the MonoBook skin */ /* * moveEditsection * This script moves the section edit links from the right edge of the page * to the right edge of the heading. (Imported from German Wikipedia) * * This functionality can be disabled by adding the following line without the * asteriks to your custom monobook.js (located under [[User:Username/monobook.js]]): * var oldEditsectionLinks = true; */ function moveEditsection() { 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]); } } } } // onload addOnloadHook(moveEditsection); // END Moving of the editsection links // ============================================================ // ============================================================ //