User:Advieser/global.js

/* */ // Edit-Botton, bei dem man einen Abschnitt auswählen kann. //EditIntroButtonText = 'Bearbeiten'; //importScriptPage( 'EditIntroButton2/code.js', 'dev' );

/* Skin-änder-Button window.monoBookText = "MonoBook"; window.oasisText = "Oasis"; window.mobileText = "Mobil"; importScriptPage('SkinSwitchButton/code.js', 'dev');*/

// "aktualisieren"-Button PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev');

importArticles({   type: 'script',    articles: [	'u:dev:NoImageLightbox/code.js',	'w:c:dev:RevealAnonIP/usercode.js',	'u:dev:PortableCSSPad/code.js',	/*'u:dev:Code/code.js'*/	'u:dev:View_Source/code.js',	'u:dev:MiniComplete/code.js',	'u:dev:AutoEditDropdown/code.js',	'u:dev:AjaxPatrol/code.js', 	'u:dev:AjaxRename/code.js',	'u:dev:BackToTopButton/code.js',	'u:dev:TabKeyInserter/code.js',	'u:dev:UnsafeScripts/code.js',	'u:dev:PageRenameAuto-update/code.js',    ] });

importScriptPage('User:Advieser/Navigation.js', 'c');

/** * 16:15, November 17, 2013 (UTC) * SkinSwitchButton * http://dev.wikia.com/wiki/SkinSwitchButton * Adds a button for switching between Oasis and Monobook. * Supports oasis, monobook and wikiamobile * @author: UltimateSupreme (http://dev.wikia.com/wiki/User:UltimateSupreme) */ // /* Anpassung der Edit-Buttons im Quelltext-Editor */ $(function{	$("#mw-editbutton-nowiki,#mw-editbutton-math,#mw-editbutton-media,#mw-editbutton-headline,#mw-editbutton-hr").css("display", "none"); });

if (mwCustomEditButtons) { /*** wrappers *****/ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/b/b4/Button_category03.png", "speedTip": "Kategorie", "tagOpen": "[[Kategorie:",    "tagClose": "]]", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/47/Button_redir.png", "speedTip": "Weiterleitung", "tagOpen": "#WEITERLEITUNG ",    "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/advieser/images/b/bd/EditAnf%C3%BChrungszeichenYellow.png/revision/latest?cb=20141221141010&path-prefix=de", "speedTip": "Anführungszeichen", "tagOpen": "„", "tagClose": "“", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/advieser/images/2/28/EditViertelgestrichYellow.png/revision/latest?cb=20141221141012&path-prefix=de", "speedTip": "Geviertelstrich", "tagOpen": "–", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/advieser/images/5/52/EditApostrophYellow.png/revision/latest?cb=20141221141010&path-prefix=de", "speedTip": "Apostroph", "tagOpen": "’", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/advieser/images/6/6b/EditPunkteYellow.png/revision/latest?cb=20141221141012&path-prefix=de", "speedTip": "Drei Punkte", "tagOpen": "…", "tagClose": "", "sampleText": ""}; }

/** subpages **/ addOnloadHook( function {	var NSWithoutSubpages = new Array( -1, 6, 8, 12, 13, 14, 15, 104, 105);	if ( document.getElementById( 'p-tb' ) && NSWithoutSubpages.indexOf( wgNamespaceNumber ) == -1 ) {		var subpagesLink = '/wiki/Special:PrefixIndex/' + wgPageName + '/';		addPortletLink( 'p-tb', subpagesLink, 'Subpages', 't-subpages', 'Subpages of this page' );	} });

/** newpage **/ addOnloadHook( function {		var newpagelink = '/wiki/Special:CreatePage'		addPortletLink( 'p-tb', newpagelink, 'Seite hinzufügen', 't-newpage', 'Neue Seite erstellen' ); });

/** auto-rename **/ addOnloadHook( function {		var autorenamelink = '/wiki/Special:BlankPage?blankspecial=pageusageupdate&pagename=' + encodeURIComponent(mw.config.get('wgPageName').replace(/ /g, "_")) + '&namespace=' + wgNamespaceNumber;		addPortletLink( 'p-tb', autorenamelink, 'Seite verschieben', 't-newpage', 'Seite verschieben (auto-update)' ); });

/* */