User:DarkBarbarian/global.js

//Profil- & Begrüßungsvorlagen importScriptPage('MediaWiki:Profilvorlagen.js', 'de.barbar');

//ChatQuotes importScriptPage('User:Wildream/ChatQuote/code.js', 'ru.c');

//Verschiedenes importScriptPage('MediaWiki:Rest.js', 'de.barbar');

/* Zusammenfassung.js */ window.dev = window.dev || {}; window.dev.editSummaries = { css: '#stdSummaries {width: 265px;}', select: [ '(Wählen)', 'Inhalt', [ 'typo', 'Korrektur', 'Ergänzung' ],       'Aufräumen', [ 'cleanup', 'Löschantrag', 'Duplikat' ],       'Vandalismus/Spam', [ 'Reverting vandalism', 'Reverting spam', 'Spam entfernt', 'Vandalismus zurückgesetzt' ],       'ILL', [ '+de', '+en', '+de +en', '+ru', '+it', '+es', '+fi', '+fr', '+pt-br', '+uk', '+ko', '+ja', ],   ] };

/* Importierte Codes */ importArticles({   type: 'script',    articles: [        'u:de.barbar:MediaWiki:AjaxRename.js',        'u:dev:MediaWiki:AdminDashboard JS-Button/code.js',        'u:dev:MediaWiki:AjaxDiff/code.js',        'u:dev:MediaWiki:AjaxEmoticons/code.js',        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:AutoEditDropdown/code.js',        'u:dev:MediaWiki:ChatHacks.js',        'u:dev:MediaWiki:FastDelete/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:MessageBlocker/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:PurgeButton/code.js',        'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',        'u:dev:MediaWiki:RevealAnonIP/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MediaWiki:Standard_Edit_Summary/code.js', 'u:dev:Mediawiki:Status/code.js', 'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:QuickComments/advanced.js', 'u:dev:MediaWiki:QuickComments/code.js', 'u:dev:MediaWiki:ExpandGlobalNavDropdownsOnHover/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:Wikimarks/code.js' ] }); /* Schnelles Löschen */ window.fdButtons = []; window.fdButtons.push({ summary: 'Nicht mehr benötigt', label: 'NmB' }, {       summary: 'Kein erkennbarer Mehrwert', label: 'KeM' }, {       summary: 'Bereits vorhanden', label: 'Bv' }, {       summary: 'Spam', label: 'S'   } ); /* Auto-Aktualisierung */ ajaxPages = ['Special:RecentChanges','Special:WikiActivity','Spezial:Letzte_Änderungen','Spezial:WikiActivity']; ajaxRefresh = 45000; AjaxRCRefreshText = 'Auto-Aktualisierung'; AjaxRCRefreshHoverText = 'Automatische Aktualisierung der gesamten Seite'; /* "Neu laden"-Button */ PurgeButtonText = 'Neu laden';

/* AjaxDiff */ AjaxDiff = { expiry: "3 days", reason: "vandalism" };

/* WHAM */ WHAMBotMe = true; WHAMBotReason = "cleanup"; WHAMDelay = 100;

//PN-Benachrichtigungen var PrivateMessageAlert = { beepSound: 'http://images1.wikia.nocookie.net/clashofclans/de/images/7/78/Hogrider_deploy_end_01.ogg', message: '$1 schickte eine Nachricht!', notifications: false, alertWhileFocused: false };

importScriptPage('MediaWiki:PrivateMessageAlert/code.js', 'dev');

//Profillink entfernt $('.wds-global-navigation__user-menu .wds-list > li:first').remove;

//Hotkeys für Vorlagenklassifizierung if (mw.config.get('wgCanonicalNamespace') == 'Template' && mw.config.get('wgAction')=='view') { require(['mw', 'wikia.nirvana'], function(mw, nirvana) {    var types = {         160: 'infobox', // ^         49: 'quote', // 1         50: 'navbox', // 2         51: 'notice', // 3         52: 'context-link', // 4         53: 'infoicon', // 5         54: 'scrollbox', // 6         55: 'references', // 7         56: 'media', // 8         57: 'data', // 9         48: 'design', // 0         63: 'navigation', // ?         192: 'nonarticle' // ´     };     document.addEventListener('keyup', function(event) { var type = types[event.which || event.keyCode]; nirvana.sendRequest({            controller: 'TemplateClassificationApi',             method: 'classifyTemplate',             data: {                 pageId: mw.config.get('wgArticleId'),                 type: type,                 editToken: mw.user.tokens.values.editToken             },             callback: function {                 document.getElementsByClassName('template-classification-type-label')[0].innerHTML = type;                 var notification = new BannerNotification('Successfully changed template type to: ' + type, 'confirm');                 notification.show;             }         }); }); }); }