User:L'Aquatique/monobook.js
//== Change section heading links ==//
// ============================================================
// BEGIN Moving of the editsection links
/*
- moveEditsection
- Dieses Script verschiebt die [Bearbeiten]-Buttons vom rechten Fensterrand
- direkt rechts neben die jeweiligen Überschriften.
- This script moves the [edit]-buttons from the right border of the window
- directly right next to the corresponding headings.
- Zum Abschalten die folgende Zeile (ohne führendes Sternchen) in die eigene
- monobook.js (zu finden unter Benutzer:Name/monobook.js) kopieren:
- var oldEditsectionLinks = true;
- dbenzhuser (de:Benutzer:Dbenzhuser)
- /
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
$(moveEditsection);
// END Moving of the editsection links
// ============================================================
importScript('User:TheDJ/qui.js');
importScript('User:AzaToth/twinkle.js');
importScript('User:Ioeth/friendly.js');
importScript('User:Mr.Z-man/closeAFD.js');
importScript('User:Proteins/striparticlelinks.js');
importScript('User:Lupin/recent2.js');