User:Frank C. Müller/monobook.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Frank C. Müller/monobook.css. |
function global_get_sysop_status() { return true; }
// Kategorien-Gadgets
importScript('MediaWiki:Gadget-HotCat.js');
importScript('MediaWiki:Gadget-Cat-a-lot.js');
// Eingabefeld in hotcat ist per default nur 40 Zeichen, jetzt wird es breiter
var hotcat_editbox_width = 80;
// ----------
// Anpassung des Upload-Formulars: Immer Basis-Formular benutzen.
var UploadForm_forcebasic = true;
// Anpassung des Upload-Formulars: Beschreibungsfeld mit genau diesen Sprachen.
//var UploadForm_description_languages = ['de', 'en', 'es', 'fr'];
// Fuegt Kategorienbaum zur Sidebar hinzu
function AppendCategoryTreeToSidebar() {
try {
var node = document.getElementById( "p-tb" )
.getElementsByTagName('div')[0]
.getElementsByTagName('ul')[0];
var aNode = document.createElement( 'a' );
var liNode = document.createElement( 'li' );
aNode.appendChild( document.createTextNode( 'CategoryTree' ) );
aNode.setAttribute( 'href' , 'http://commons.wikimedia.org/wiki/Special:CategoryTree' );
liNode.appendChild( aNode );
liNode.className = 'plainlinks';
node.appendChild( liNode );
} catch(e) {
// lets just ignore what's happened
return;
}
}
$( AppendCategoryTreeToSidebar );