User:TiLaton2/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:RCStats.js',    ] }); importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:BackToTopButton/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.indexOf("/wiki/")) + encodeURI(suchText);  } });