User:AgentGreen2000/global.js

/* Special:Chat Extension */

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); importScriptPage('MediaWiki:PrivateMessageAlert/code.js', 'dev');

/* Editor-Knöpfe */

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Magic", "tagOpen": "__", "tagClose": "__", "sampleText": "NOEDITSECTION" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", "speedTip": "Weiterleitung", "tagOpen": "#REDIRECT ",   "tagClose": "", "sampleText": "R" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Anführungszeichen", "tagOpen": "„", "tagClose": "“", "sampleText": "M" }; }

/* AwesomeSearch */

var searchForm = document.getElementById("searchForm"); var searchInput = document.getElementById("searchInput"); searchForm.addEventListener ("submit", function(event) { "use strict";  if (searchInput.value.indexOf(":") != -1) {    event.preventDefault;    window.location = '/wiki/' + encodeURI(searchInput.value);  } });