User:Mystery99/global.js

//Imports importArticles({   type: 'script',    articles: [        'u:dev:AjaxRC.js',        'u:dev:AjaxRename/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:ContribsLink/code.js',        'u:dev:DiscussionsActivity.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:EditIntroButton/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:MassCategorization/code.js',        'u:dev:MassEdit/code.js',        'u:dev:MassNullEdit/code.js',        'u:dev:MultipleActivity.js',        'u:dev:PiniginsUserInfo/code.js',        'u:dev:QuickDiff/code.js',        'u:dev:RedirectManagement/code.js',        'u:dev:ReferencePopups/code.js',        'u:dev:SaveKey/code.js',        'u:dev:SeeMoreActivityButton/code.js',        'u:dev:UserActivityTab/code.js',        'u:dev:UserCheck/code.js',        'u:dev:WhatLinksHere/code.js',    ] });

/* AwesomeSearch */ document.forms[0].addEventListener ("submit", function(event) { "use strict";  var suchText = this["query"].value;  if (suchText.indexOf(":") != -1) {    event.preventDefault;    var loc = window.location.href;    window.location = loc.substring(0, 6 + loc.lastIndexOf("/wiki/")) + encodeURI(suchText);  } });