User:M͢ystr͢ile/global.js

/* ==================================================== */ /* ========        Import Articles            ======== */ /* ==================================================== */

importArticles ({	type:'script',	articles:        [                'w:c:dev:PurgeButton/code.js', //Adds Refresh button to the menu	] });

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); //Enables Chat Hacks

/**********************************/ /******   Wikia Shortcut    ******/ /**********************************/

$(document).ready(function {   // If the page isn't being renamed, moved, or deleted, enable shortcuts    // and the page can be deleted/renamed/edited.    $("#WikiaArticle").attr("tabindex", 1).keyup(function(e) {       var button; switch(e.which) {           case 68: //D deletes page button = $("a[data-id='delete']").get(0); break; case 69: //E edits page button = $("a[data-id='edit']").get(0); break; case 77: //M moves page button = $("a[data-id='move']").get(0); break; case 82: //R refreshes page button = $("#purge").get(0); break; }       if (button) {           button.click; }   }); });