User:Law of Royale/global.js

mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript', 'text/javascript', true ); importArticles({   type: 'script',    articles:  [        'u:dev:MediaWiki:FileUsageAuto-update/code.js',        'u:dev:MediaWiki:CategoryRenameAuto-update/code.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:DisplayClock/code.js',        'u:dev:MediaWiki:EditcountTag/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:FixLinks/code.js',        'u:dev:MediaWiki:GlobalChatJS.js', /* See also: User:Law_of_Royale/chat.js */        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:MassBlock/code.js',        'u:dev:MediaWiki:MassRename/code.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:MassProtect/code.js',        'u:dev:MediaWiki:MassRedirect/code.1.js',        'u:dev:MediaWiki:Nuke/code.js',        'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:SearchSuggest/code.js', 'u:dev:MediaWiki:SkinSwitchButton/code.js', 'u:dev:MediaWiki:SnowStorm.js', 'u:dev:MediaWiki:Standard_Edit_Summary/code.js', 'u:dev:MediaWiki:UserAccountAge/code.js', 'u:dev:MediaWiki:UserActivityTab/code.js', 'u:dev:MediaWiki:UserTags/code.js', 'u:dev:MediaWiki:ViewRemovedAlways/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:WhatLinksHere/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:runescape:MediaWiki:Common.js/spreport.js', 'u:dev:Quick_Management/code.js', 'u:dev:QuickThreads/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:DupImageList/code.js', 'u:dev:CleanWantedFiles/code.js', 'u:dev:PurgeButton/code.js', 'u:dev:Sine/code.js' ] }); var qtMessageWallGreetingTemplate = ; var qtEnableUserPageOverwrite = true; var qtEnableMessageWallGreetingOverwrite = true; var qtMessageWallGreetingTemplate = ; var qtEnableUserPageOverwrite = true; var qtEnableMessageWallGreetingOverwrite = true; window.dev = window.dev || {}; window.dev.editSummaries = {   select: [        '(select)',        '1. All', [            'Interwiki',            'Link(s)',            'Can anyone look at it?',            'Translated',            'Code added',            'Cleanup',            'Typo',            'Datei Beschreibung hinzugefügt',            'Konstruktive Kritik',            'Siehe dir diesen Blog an um mehr Informationen zu erhalten!',            'Bearbeitung erlaubt vom Wikianer',            'Autoedit',            'Video hinzugefügt',            'Bild hinzugefügt',            'Bild und Video hinzugefügt',            'Struktuiert', 'Frage besser formuliert', 'Kleinere Behebungen des QT und/oder des Inhaltes' ]   ] }; window.DisplayClockJS = '%2H:%2M:%2S, %2d.%{01;02;03;04;05;06;07;08;09;10;11;12}m.%Y (UTC)'; UserTagsJS.modules.metafilter = false; /* WEJŚCIE VUHA BY PIO387 if (Quentum = WSZEDŁ_NA_CZAT) Vuh_chatCS_join; */

window.ChatStatus = { statuses: { afk: "AFK", wiki: "Bearbeiten", besch: "Beschäftigt", online: "Online", offline: "Offline", handy: "Mit Handy online", brb: "Bin gleich zurück", tv: "TV schauen", stream: "Stream schauen", essen: "Essen", cr: "Kämpfe gerade!", wa: "in WhatsApp", schl: "Schlafe", iaw: "in andere Wiki", spiel: "Spielen" },	debug: false };

importArticles({ type: 'script', articles: [   'u:dev:MediaWiki:ChatHacks.js' ]}); importScriptPage('ChatOptions/code.js', 'dev'); // importScript('Mediawiki:chatEditRestriction.js'); importScriptPage('MediaWiki:ChatAnnouncements/code.js','dev'); importArticles({	type: "script",	articles: [		"u:dev:ChatDelay/code.js"	] }); $(window).load(function addButtons {   if ($('#chatOptionsButton').length === 0) {        setTimeout(addButtons, 250);    } else if ($('.chat-button').length === 0) {        $('#chatOptionsButton').after(themeButtons, clearChatText);    } }); /* Clear chat */ function clearChatText { var $clearDiv = $(' ').addClass('chat-button'); var $clearLink = $('').addClass('wikia-button').text('Clear chat'); $clearDiv.html($clearLink); $clearLink.click(function {       $('.Chat li').remove;    }); return $clearDiv; } function themeButtons { var normalText = 'Normal theme'; var dayText = 'Tag Thema'; var duskText = 'Dämmerungs Thema'; var nightText = 'Nacht Thema'; var $button = $(' '); var $link = $('').text(normalText); var $body = $('body'); $button.html($link); $button.click(function {       switch ($link.text) {            case dayText:                $link.text(duskText);                $body.removeClass('normal').addClass('day');                break;            case duskText:                $link.text(nightText);                $body.removeClass('day').addClass('dusk');                break;            case nightText:                $link.text(normalText);                $body.removeClass('dusk').addClass('night');                break;            case normalText:                $link.text(dayText);                $body.removeClass('night').addClass('normal');                break;        }    }); $body.addClass('normal'); return $button; } /* Kopie von MindaChan */

// Variablen für das Skript AjaxRC (siehe http://dev.wikia.com/wiki/AjaxRC) window.ajaxSpecialPages = ["Recentchanges", "WikiActivity"]; window.AjaxRCRefreshText = 'Auto-Aktualisierung'; window.AjaxRCRefreshHoverText = 'Automatische Aktualisierung ohne Neuladen der kompletten Seite';