Allows you to press 1234 keys to trigger Kahoot answer buttons
目前為
// ==UserScript==
// @name KaBoot
// @namespace https://tampermonkey.net
// @version 0.2
// @description Allows you to press 1234 keys to trigger Kahoot answer buttons
// @author You
// @match https://kahoot.it/*
// @grant none
// ==/UserScript==
(function() {
document.addEventListener('keydown', e => {
if (e.keyCode < 53 && e.keyCode > 48)
document.querySelectorAll('[role="button"]')[e.keyCode-49].click();
});
})();