User:Klap Trap/global.js

importScriptPage('SkinSwitchButton/code.js', 'dev'); ///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /************************ Import Configurations ************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// /* Mass Effect Configs */ batchDeleteDelay = 250; massCategorizationDelay = 500; massProtectDelay = 500; massRedirectDelay = 500; massRenameDelay = 500; massRenameSummary = "Renaming Pages"; nullEditDelay = 250; WHAMDelay = 500; //End MEC*/ ///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /******************************* Imports *******************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// importArticles({   type: 'script',    articles: [        'u:dev:AjaxBatchDelete/code.js',        'u:dev:AutoEditPages/code.js',        'u:dev:CleanWantedFiles/code.js',        'u:dev:Linksweeper/code.js',        'u:dev:MassCategorization/code.js',        'u:dev:MassEdit/code.js',        'u:dev:MassNullEdit/code.js',        'u:dev:MassProtect/code.js',        'u:dev:MassRedirect/code.1.js',        'u:dev:MassRename/code.js',        'u:dev:MassRenameRevert/code.js',        'u:dev:WHAM/code.2.js',    ] });//End Imports*/ /* chat hacks */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

/* Auto-refreshing recent changes */ ajaxPages = ["Spezial:WikiActivity","Spezial:Letzte_Änderungen","Spezial:Beobachtungsliste","Spezial:Logbuch","Spezial:Beiträge"]; AjaxRCRefreshText = 'Aktualisierung'; AjaxRCRefreshHoverText = 'Aktualisiert die Seite automatisch'; importScriptPage('MediaWiki:AjaxRC/code.js', 'dev');

/* Account Age */ importArticles({   type: "script",    articles: [        "u:dev:UserAccountAge/code2.js"    ] });

/*Discussions Feed */ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:DiscussionsFeed.js',    ] });

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

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:WHAM/code.2.js',    ] });