Reload shortcut

Add a binding to reset without using the mouse

// ==UserScript==
// @name         Reload shortcut
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Add a binding to reset without using the mouse
// @author       LeReverandNox
// @match        https://typings.gg/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
        // keys
    const resetKey = 'r';

    document.addEventListener("keydown", (e) => {
        const reset = document.getElementById("redo-button");

       if (e.ctrlKey && e.key == resetKey) {
           e.preventDefault();
           reset.click();
       }
    });
})();