MediaWiki:Monobook.js
Aus Kitakien
(Unterschied zwischen Versionen)
D (Diskussion) (format: einheitliche trennlinien mit beschreibung. sonst find man ja hier gar nix mehr.) |
K (170 Versionen: Systemmeldungen) |
||
(Der Versionsvergleich bezieht 36 dazwischenliegende Versionen mit ein.) | |||
Zeile 1: | Zeile 1: | ||
+ | /* Der Grossteil der Codes befindet sich in [[MediaWiki:Common.js]] */ | ||
+ | |||
//================================================================================ | //================================================================================ | ||
- | //*** | + | //*** moveEditsection: Moving of the editsection links |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | /* | |
- | + | ||
- | + | ||
- | + | ||
* moveEditsection | * moveEditsection | ||
* Dieses Script verschiebt die [Bearbeiten]-Buttons vom rechten Fensterrand | * Dieses Script verschiebt die [Bearbeiten]-Buttons vom rechten Fensterrand | ||
Zeile 124: | Zeile 17: | ||
* dbenzhuser (de:Benutzer:Dbenzhuser) | * dbenzhuser (de:Benutzer:Dbenzhuser) | ||
*/ | */ | ||
- | + | addOnloadHook(function() { | |
- | + | if (typeof oldEditsectionLinks != 'undefined' && oldEditsectionLinks) return; | |
- | + | var spans = document.getElementsByTagName("span"); | |
- | + | for (var i=0; i<spans.length; i++) { | |
- | + | var span = spans[i]; | |
- | + | if (span == 'undefined' || span.className != "editsection") continue; | |
- | + | span.style.fontSize = "x-small"; | |
- | + | span.style.fontWeight = "normal"; | |
- | + | span.style.styleFloat = "none"; // IE-Fix für die folgende Zeile | |
- | + | span.style.cssFloat = "none"; | |
- | + | span.style.marginLeft = "0px"; | |
- | + | span.parentNode.appendChild(document.createTextNode(" ")); | |
- | + | span.parentNode.appendChild(span); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | }); | |
- | + |
Aktuelle Version vom 17:22, 9. Dez. 2009
/* Der Grossteil der Codes befindet sich in [[MediaWiki:Common.js]] */ //================================================================================ //*** moveEditsection: 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 [[Special:Mypage/monobook.js|Benutzer:Name/monobook.js]]) kopieren: * var oldEditsectionLinks = true; * * dbenzhuser (de:Benutzer:Dbenzhuser) */ addOnloadHook(function() { if (typeof oldEditsectionLinks != 'undefined' && oldEditsectionLinks) return; var spans = document.getElementsByTagName("span"); for (var i=0; i<spans.length; i++) { var span = spans[i]; if (span == 'undefined' || span.className != "editsection") continue; span.style.fontSize = "x-small"; span.style.fontWeight = "normal"; span.style.styleFloat = "none"; // IE-Fix für die folgende Zeile span.style.cssFloat = "none"; span.style.marginLeft = "0px"; span.parentNode.appendChild(document.createTextNode(" ")); span.parentNode.appendChild(span); } });