MediaWiki talk:Monobook.js
Add topicAppearance
Latest comment: 15 years ago by Skizzerz
/* * 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
from: http://en.wikiversity.org/wiki/MediaWiki:Monobook.js
- Put it in your personal js if you want it, this is not going sitewide. --Skizzerz 15:09, 22 June 2009 (UTC)