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 {   $("#WikiaArticle").attr("tabindex", 1);    // If the page isn't being renamed, moved, or deleted, enable shortcuts    // and the page can be deleted/renamed/edited.    if (window.location.href.indexOf("?action=") == -1)    {        $("#WikiaArticle").keyup(function(e) {           switch(e.which) {               case 68: //D deletes page $("#ca-delete").get(0).click; break; case 69: //E edits page $("#ca-edit").get(0).click; break; case 77: //M moves page $("#ca-move").get(0).click; break; case 82: //R refreshes page $("#purge").get(0).click; break; }       });    } });