MediaWiki:Common.js: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { $(document).on('keydown', function(e) { if (e.key === 'e' && !$(e.target).is('input, textarea')) { e.preventDefault(); window.location.href = mw.util.getUrl(null, { action: 'edit' }); } }); });")
 
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
 
$(document).ready(function() {
    $(document).on('keydown', function(e) {
        if (e.key === 'e' && !$(e.target).is('input, textarea')) {
            e.preventDefault();
            window.location.href = mw.util.getUrl(null, { action: 'edit' });
        }
    });
});

Revision as of 03:14, 10 July 2024