User:Advieser/global.js

/* changing "Start a wikia" in RC - thx Amon */ $('.start-wikia').attr('href','/wiki/Special:RecentChanges?hidebots=0').attr('title','Special:RecentChanges').text('LÄ');

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

/* AdvancedOasisUI dev.AdvancedOasisUI = { accountNavFollowedPages: false, accountNavWatchlist: false, categoryRedlink: true, RCHeader: true, DefaultSourceMode: true, lightbox: true, activity2RC: false, userLang: true, }; */

importArticles({   type: 'script',    articles: [	'w:c:dev:RevealAnonIP/usercode.js',	'u:dev:PortableCSSPad/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',        'u:dev:RedirectManagement/code.js',        'u:dev:CategoryRenameAuto-update/code.js',        'u:dev:OldFilePages/code.js',        'u:dev:FileUsageAuto-update/code.js',        'u:dev:CleanWantedFiles/code.js',        'u:dev:AdvancedOasisUI/code.js',    ] });

/** * 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 + '&useskin=wikia';		addPortletLink( 'p-tb', autorenamelink, 'Seite verschieben', 't-newpage', 'Seite verschieben (auto-update)' ); });

/* AwesomeSearch */ document.getElementById("searchForm").addEventListener("submit",function(event){ "use strict";  var suchText = document.getElementById("searchInput").value;  if (suchText.indexOf(":") != -1) {    event.preventDefault;    window.location = '/wiki/' + encodeURI(suchText);  } }); console.log( 'w:c:community:User:Advieser/global.js - geladen' ); /* */