KaBoot

Allows you to press 1234 keys to trigger Kahoot answer buttons

目前為 2021-07-20 提交的版本,檢視 最新版本

// ==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();
});
})();