User:Bjs/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// global  Javascript settings for all the wikis and skins 

// Zusatzeinstellungen für das Helferlein markadmins
markcomadmins = true;      // zusätzlich: Commons-Admins besonders hervorheben?
markexadmins  = true;      // zusätzlich: Ex-Admins besonders hervorheben?

// Bis zu 3 Leisten ausklappen
NavigationBarShowDefault = 3; 

// [[Benutzer:TMg/moveInterwikisToTop.js]]
// Bevorzugte Interlanguage-Links zuerst anzeigen
var moveInterwikisToTopArray = ['de', 'en', 'fr', 'it', 'scn', 'es', 'ca', 'nl', 'el', 'ru', 'he', 'ar', 'zh', 'ja', 'Ko'];
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/moveInterwikisToTop.js&action=raw&ctype=text/javascript' );

// Tools von [[Benutzer:Schnark/js]]
// importScript('Benutzer:Schnark/js/syntaxhighlight.js'); stattdessen Beta-Version der offiziellen Syntaxhervorhebung 
// importScript('Benutzer:Schnark/js/antispoof.js'); // Kennzeichnen verdächtiger Zeivhen 
// importScript('Benutzer:Schnark/js/highlight.js'); // von antispoof.js verwendetes Hilfstool

importScript('Benutzer:Schnark/toolbar.js');
function newtoolbar_config() { 
newtoolbar_addButton('advanced', 'N');
newtoolbar_addButton('advanced', 'U');
newtoolbar_addButton('advanced', 'S');
newtoolbar_addButton('advanced', 'T');
newtoolbar_addButton('advanced', 'R3');
newtoolbar_addButton('advanced', 'DS');
newtoolbar_addButton('advanced', 'K');
newtoolbar_addButton('advanced', 'PD');
newtoolbar_addButton('advanced', 'DO');
newtoolbar_addButton('advanced', 'ER');
newtoolbar_addButton('main', 'sig');
newtoolbar_addSelect('main', 'SP');
}

// [[Benutzer:PerfektesChaos/js/WikiSyntaxTextMod]]
// mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",
//               "text/javascript");

// Cat-a-lot aktivieren
window.catALotPrefs = {editpages:  true};
mw.loader.using(['jquery.ui', 'mediawiki.util', 'jquery.mwExtension'], function(){
 mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-Cat-a-lot.js');
 importStylesheetURI('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/css&title=MediaWiki:Gadget-Cat-a-lot.css');
});