User:Tim H/global.js

window.fdButtons = [ {   summary: "Deleting", label: "FastDelete" } ]; window.FastDeleteNoConfirm = true; window.AjaxThreadDeleteConfig = { fastDelete: true, reason: "Deleting comment" }; window.nullEditDelay = 100; window.batchDeleteDelay = 500; window.massEditConfig = { editInterval: 100 }; var MultiUploadoption = { defaultlicense:'' }; importArticles({ type: "script",  articles: [    "u:dev:MediaWiki:DisableInfoboxBuilder.js",    "u:dev:MediaWiki:FindAndReplace/code.js",    "u:dev:MediaWiki:AjaxThreadDelete/code.js",    "u:dev:MediaWiki:AjaxBatchDelete.js",    "u:dev:MediaWiki:MultipleFileDelete/code.js",    "u:dev:MediaWiki:CategoryRenameAuto-update/code.js",    "u:dev:MediaWiki:DisambiguationManagement/code.js",    "u:dev:MediaWiki:FastDelete/code.js",    "u:dev:MediaWiki:MassNullEdit/code.js",    "u:dev:MediaWiki:MultiUpload/code.js",    "u:dev:MediaWiki:FileUsageAuto-update/code.js"  ] }); mw.hook("fastdelete.init").add(function { var el = $("#FastDeleteBtns");  var share = $(".page-header__contribution-buttons #ShareEntryPoint");  var comments = $( '.page-header__contribution-buttons a[href="#WikiaArticleComments"]' ); var edit = $(".page-header__contribution-buttons #ca-edit").parent;  var veedit = $(".page-header__contribution-buttons #ca-ve-edit").parent;  if (share.exists && share.is(":visible")) {    share.after(el);  } else if (comments.exists) {    comments.after(el);  } else if (edit.exists) {    edit.after(el);  } else if (veedit.exists) {    veedit.after(el);  } }); $(function { $(document).keydown(function(e) { if (e.keyCode == 82) { $("a", "#WikiaPage").mouseenter(function(e) {       var a = new mw.Uri($(this).attr("href"));        a.extend({ redirect: "no" });       $(this).attr("href", a);      }); } }); });